public class ImageWriterDisplayCallback extends Object implements DisplayCallback
| Constructor and Description |
|---|
ImageWriterDisplayCallback()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
displayClose()
Method called when device has been closed.
|
void |
displayOpen()
Method called when new device has been opened.
|
void |
displayPage(int width,
int height,
int raster,
int format,
int copies,
int flush,
byte[] imageData)
Method called on show page.
|
void |
displayPreClose()
Method called when device is about to be closed.
|
void |
displayPreSize(int width,
int height,
int raster,
int format)
Method called when device is about to be resized.
|
void |
displaySize(int width,
int height,
int raster,
int format)
Method called when device has been resized.
|
void |
displaySync()
Method called on page flush.
|
void |
displayUpdate(int x,
int y,
int width,
int height)
Method called to notify whenever a portion of the raster is updated.
|
List<Image> |
getImages() |
public void displayOpen()
throws GhostscriptException
DisplayCallbackdisplayOpen in interface DisplayCallbackGhostscriptExceptionpublic void displayPreClose()
throws GhostscriptException
DisplayCallbackdisplayPreClose in interface DisplayCallbackGhostscriptExceptionpublic void displayClose()
throws GhostscriptException
DisplayCallbackdisplayClose in interface DisplayCallbackGhostscriptExceptionpublic void displayPreSize(int width,
int height,
int raster,
int format)
throws GhostscriptException
DisplayCallbackdisplayPreSize in interface DisplayCallbackwidth - Widthheight - Heightraster - Rasterformat - FormatGhostscriptExceptionpublic void displaySize(int width,
int height,
int raster,
int format)
throws GhostscriptException
DisplayCallbackdisplaySize in interface DisplayCallbackwidth - Widthheight - Heightraster - Rasterformat - FormatGhostscriptExceptionpublic void displaySync()
throws GhostscriptException
DisplayCallbackdisplaySync in interface DisplayCallbackGhostscriptExceptionpublic void displayPage(int width,
int height,
int raster,
int format,
int copies,
int flush,
byte[] imageData)
throws GhostscriptException
DisplayCallbackdisplayPage in interface DisplayCallbackwidth - Widthheight - Heightraster - Rasterformat - Formatcopies - Copiesflush - FlushimageData - Byte array representing image data. Data layout and order is
controlled by the -dDisplayFormat argument.GhostscriptExceptionpublic void displayUpdate(int x,
int y,
int width,
int height)
throws GhostscriptException
DisplayCallbackdisplayUpdate in interface DisplayCallbackx - X coordinatey - Y coordinatewidth - Widthheight - HeightGhostscriptExceptionCopyright © 2016. All Rights Reserved.