public class PdfImageData extends Object
Images are generally stored in the temp directory and only their meta data held to reduce memory needs.
| Constructor and Description |
|---|
PdfImageData() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearImageData()
clear object and reset (does not flush images from disk cache held by ObjectStore)
|
int |
getImageCount()
return the number of images.
|
float |
getImageHeight(int i)
get height for image in pixels
|
String |
getImageName(int i)
get image name created from raw data
|
int |
getImagePageID(int i)
get object page id (ie sequential
number of page)
|
float |
getImageWidth(int i)
get width for image in pixels
|
float |
getImageXCoord(int i)
get X co-ord for image in pixels (user coords)
|
float |
getImageYCoord(int i)
get Y co-ord for image in pixels (user coords)
|
void |
setImageInfo(String image_name,
int current_page_id,
float x1,
float y1,
float w1,
float h1)
add an item (used internally as PDF page decoded).
|
public final void setImageInfo(String image_name, int current_page_id, float x1, float y1, float w1, float h1)
add an item (used internally as PDF page decoded).
image_name - the name of the imagecurrent_page_id - the id value of the pagex1 - x co-ordinates of the imagey1 - y co-ordinates of the imagew1 - width of the imageh1 - height of the imagepublic final float getImageYCoord(int i)
i - pixel value of the imagepublic final float getImageWidth(int i)
i - pixel value of the imagepublic final float getImageHeight(int i)
i - pixel value of the imagepublic final int getImagePageID(int i)
i - value for the page idpublic final String getImageName(int i)
i - value of raw datapublic final void clearImageData()
public final float getImageXCoord(int i)
i - pixel value of the imagepublic final int getImageCount()
return the number of images.
Note image1 is item 0, image2 is item 1 forget methods
Copyright © 2017. All rights reserved.