|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.Resource com.cete.dynamicpdf.imaging.ImageData com.cete.dynamicpdf.imaging.Jpeg2000ImageData
public class Jpeg2000ImageData
Class represents the data of a JPEG2000 image.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
Jpeg2000ImageData(java.lang.String filePath)
Initializes a new instance of the Jpeg2000ImageData class. |
Method Summary | |
---|---|
void |
draw(DocumentWriter writer)
Draws the JPEG2000 image data to the given DocumentWriter object. |
int |
getHeight()
Gets the height of the JPEG2000 image. |
int |
getRequiredPdfObjects()
Gets the number of PDF objects required by the JPEG2000 image data. |
float |
getScaleX()
Gets the X scale of the image. |
float |
getScaleY()
Gets the Y scale of the image. |
int |
getWidth()
Gets the width of the JPEG2000 image. |
static boolean |
isValid(byte[] header)
Returns a value indicating if the provides file header is valid for a JPEG2000 image. |
static boolean |
isValid(java.lang.String fileExtension)
Returns a value indicating if the provides file extension is valid for a JPEG2000 image. |
Methods inherited from class com.cete.dynamicpdf.imaging.ImageData |
---|
draw, getHorizontalDpi, getImage, getImage, getInterpolate, getPage, getPage, getPointHeight, getPointWidth, getResourceType, getVerticalDpi, setInterpolate |
Methods inherited from class com.cete.dynamicpdf.Resource |
---|
getUid, newUid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jpeg2000ImageData(java.lang.String filePath) throws java.io.FileNotFoundException
Jpeg2000ImageData
class.
ImageParsingException
- If the JPEG 2000 file is invalid.
java.io.FileNotFoundException
- If physical file path of the image is not found.filePath
- Physical file path of the image.Jpeg2000ImageData
Method Detail |
---|
public static boolean isValid(java.lang.String fileExtension)
fileExtension
- String value containing file extension.
public static boolean isValid(byte[] header)
header
- Contains the image header values.
public int getRequiredPdfObjects()
getRequiredPdfObjects
in class Resource
public int getWidth()
getWidth
in class ImageData
public int getHeight()
getHeight
in class ImageData
public float getScaleX()
getScaleX
in class ImageData
public float getScaleY()
getScaleY
in class ImageData
public void draw(DocumentWriter writer)
DocumentWriter
object.
draw
in class Resource
writer
- DocumentWriter
object to receive the JPEG2000
image data's output.DocumentWriter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |