|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.muni.pdfjbim.PdfImage
public class PdfImage
class representing JBIG2 image in format suitable for pdf (without header,...)
| Constructor Summary | |
|---|---|
PdfImage(File imageDataFile)
constructor sets pointer to file containing image data, pdfImageInformation will be set later |
|
PdfImage(File imageData,
PdfImageInformation pdfImageInformation)
constructor which sets both atributes (image data and informations about this image) |
|
| Method Summary | |
|---|---|
byte[] |
getImageData()
return byte array of image data |
File |
getImageDataFile()
|
PdfImageInformation |
getPdfImageInformation()
|
void |
setPdfImageInformation(PdfImageInformation pdfImageInformation)
sets information of pdf image dirrectly |
void |
setPdfImageInformation(String key,
int pageNum,
int width,
int height,
int objNum,
int genNum)
sets information of pdf image by calling constructor |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PdfImage(File imageDataFile)
imageDataFile - represents pointer to file containing image data
public PdfImage(File imageData,
PdfImageInformation pdfImageInformation)
imageData - represents data of imagepdfImageInformation - represents associated information of image like width, height, position in original pdf,...| Method Detail |
|---|
public byte[] getImageData()
throws PdfRecompressionException
PdfRecompressionException - if file wasn't found
or there is too much data in the file that cannot be contained in one byte array
public void setPdfImageInformation(String key,
int pageNum,
int width,
int height,
int objNum,
int genNum)
key - represents pdf object keypageNum - represents number of page in PDF where is this image belong towidth - represents with of imageheight - represents height of imageobjNum - genNum - public void setPdfImageInformation(PdfImageInformation pdfImageInformation)
pdfImageInformation - represents information about imagepublic PdfImageInformation getPdfImageInformation()
public File getImageDataFile()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||