|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPclRenderImage
Methods in the PclRenderImage class in the pclrnderimage.jar that the calling app UI code can call. This calling app can be either the OpenPCLViewer JPanel in openpcl.jar or other other external app(s) you write.
Method Summary | |
---|---|
void |
blankOutBufferedImage()
Blank out the BufferedImage on the screen. |
BufferedImage |
getBufferedImageToDrawOn()
Get the BufferedImage to draw on for purposes of an external app can call methods on the BufferedImage object so the external app can directly draw on the image if wanted. |
BufferedImage |
getImageForPage(int pPageNumber,
byte[] pPrintTimePclBytes,
boolean pIsForPrinting,
String pPaperSize,
double pZoomFactor)
The PCL for the passed in page number will be rendered to a BufferedImage. |
String |
getLastRenderErrorString()
Get the last error string. |
String |
getPaperSizeForPage(int pPageNumber)
Get the Paper Size int that was in the original Pcl bytes for the passed in page. |
byte[] |
getPclBytesForPage(int pPageNumber)
Get the Pcl bytes for page N |
int |
getPclPageCount()
Returns the number of separate pages found by parsing the passed in Pcl bytes in splitIntoSeparatePclPages(). |
String |
loadFromFileSplitIntoSeparatePclPages(String pFullPathAndFilename)
Read the PCL bytes the passed in String full path and filename. |
String |
loadFromUrlSplitIntoSeparatePclPages(String pUrl)
Read the PCL bytes the passed in String URL. |
String |
splitIntoSeparatePclPages(byte[] pPclBytes)
Split the passed in Pcl bytes into separate pages and internally store each page's Pcl bytes. |
Method Detail |
---|
String splitIntoSeparatePclPages(byte[] pPclBytes)
pPclBytes
-
int getPclPageCount()
BufferedImage getImageForPage(int pPageNumber, byte[] pPrintTimePclBytes, boolean pIsForPrinting, String pPaperSize, double pZoomFactor)
pPageNumber.
- The Pcl page number to render to the image.pPrintTimePclBytes.
- Draw these additional PCL bytes on the print image.pIsForPrinting.
- If true non printing items like signature blocks won't be rendered.pPaperSize.
- If a paper size is not specified in the PCL, this paper size will be used. "LTR" or "LGL".pZoomFactor.
- This is mandatory (see note for why).
String getLastRenderErrorString()
String loadFromFileSplitIntoSeparatePclPages(String pFullPathAndFilename)
pFullPathAndFilename
-
String loadFromUrlSplitIntoSeparatePclPages(String pUrl)
pUrl
-
BufferedImage getBufferedImageToDrawOn()
void blankOutBufferedImage()
byte[] getPclBytesForPage(int pPageNumber)
String getPaperSizeForPage(int pPageNumber)
pPageNumber
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |