|
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
public abstract class ImageData
Class represents the data of an image.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
protected |
ImageData()
Initializes a new instance of the ImageData class. |
Method Summary | |
---|---|
void |
draw(OperatorWriter writer,
float pdfX,
float pdfY,
float width,
float height)
Draws the image data to the given OperatorWriter object. |
abstract int |
getHeight()
Gets the pixel height of the image data. |
float |
getHorizontalDpi()
Gets the horizontal dpi(also known as pixels per inch) of the image data. |
static ImageData |
getImage(byte[] byteArray)
Returns an ImageData of the correct type for the given Stream. |
static ImageData |
getImage(java.lang.String filePath)
Returns an ImageData of the correct type for the given
physical file path. |
boolean |
getInterpolate()
Gets a value indicating is image interpolation should be used by the PDF viewer when viewing the Image. |
Page |
getPage()
Returns a Page object containing the image as a background. |
Page |
getPage(float margins)
Returns a Page object containing the image as a background. |
float |
getPointHeight()
Calculates the height of the image in points. |
float |
getPointWidth()
Calculates the width of the image in points. |
ResourceType |
getResourceType()
Gets the type of resource. |
abstract float |
getScaleX()
Gets the X scale of the image data. |
abstract float |
getScaleY()
Gets the Y scale of the image data. |
float |
getVerticalDpi()
Gets the vertical dpi(also known as pixels per inch) of the image data. |
abstract int |
getWidth()
Gets the pixel width of the image data. |
void |
setInterpolate(boolean value)
Sets a value indicating is image interpolation should be used by the PDF viewer when viewing the Image. |
Methods inherited from class com.cete.dynamicpdf.Resource |
---|
draw, getRequiredPdfObjects, getUid, newUid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ImageData()
ImageData
class.
ImageData
Method Detail |
---|
public static ImageData getImage(java.lang.String filePath) throws java.io.FileNotFoundException
ImageData
of the correct type for the given
physical file path.
java.io.FileNotFoundException
- if physical file path of the image is not found.filePath
- Physical file path of the image.
ImageData
public static ImageData getImage(byte[] byteArray)
ImageData
of the correct type for the given Stream.
GeneratorException
- if Byte Array is null.byteArray
- Byte Array containing the image data.
ImageData
public abstract int getWidth()
public abstract int getHeight()
public abstract float getScaleX()
public abstract float getScaleY()
public float getHorizontalDpi()
public float getVerticalDpi()
public float getPointWidth()
public float getPointHeight()
public Page getPage(float margins)
Page
object containing the image as a background.
margins
- The margins of the page.
Page
public Page getPage()
Page
object containing the image as a background.
Page
public void draw(OperatorWriter writer, float pdfX, float pdfY, float width, float height)
OperatorWriter
object.
writer
- PageWriter
class to receive the image data's output.pdfX
- X PDF coordinate for the image when drawn.pdfY
- Y PDF Coordinate for the image when drawn.width
- Width of the image when drawn.height
- Height of the image when drawn.OperatorWriter
public void setInterpolate(boolean value)
value
- the image interpolation status.public boolean getInterpolate()
public ResourceType getResourceType()
getResourceType
in class Resource
ResourceType
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |