public abstract class ImageDevice extends PageDevice
An abstract class for image devices.
Constructor and Description |
---|
ImageDevice()
Abstract initializer for
ImageDevice descendants, set resolution to 150x150. |
ImageDevice(int width,
int height)
Initializes a new instance of the
JpegDevice class with provided image dimensions and
default resolution (=150). |
ImageDevice(int width,
int height,
Resolution resolution)
Initializes a new instance of the
JpegDevice class with provided image dimensions and
resolution. |
ImageDevice(PageSize pageSize)
Initializes a new instance of the
JpegDevice class with provided image dimensions and
default resolution (=150). |
ImageDevice(PageSize pageSize,
Resolution resolution)
Initializes a new instance of the
JpegDevice class with provided image dimensions and
resolution. |
ImageDevice(Resolution resolution)
Abstract initializer for
ImageDevice descendants. |
Modifier and Type | Method and Description |
---|---|
int |
getCoordinateType()
Gets the page coordinate type (Media/Crop boxes).
|
Rectangle |
getCropRectangle()
Get rectangle that defines the area that will be converted into a picture.
|
int |
getFormPresentationMode()
Gets form presentation mode.
|
int |
getHeight()
Gets image output height.
|
RenderingOptions |
getRenderingOptions()
Gets rendering options.
|
Resolution |
getResolution()
Gets image resolution.
|
int |
getWidth()
Gets image output width.
|
static boolean |
isShadingPerformanceHigh()
Is the performance of shading processes High.
|
void |
setCoordinateType(int value)
Sets the page coordinate type (Media/Crop boxes).
|
void |
setCropRectangle(Rectangle cropRectangle)
Set rectangle that defines the area that will be converted into a picture.
|
void |
setFormPresentationMode(int value)
Sets form presentation mode.
|
void |
setRenderingOptions(RenderingOptions value)
Sets rendering options.
|
static void |
setShadingPerformanceHigh(boolean value)
Sets the the performance of shading processes High or not.
|
process, process, process, processInternal
public ImageDevice()
Abstract initializer for ImageDevice
descendants, set resolution to 150x150.
public ImageDevice(Resolution resolution)
Abstract initializer for ImageDevice
descendants.
resolution
- Resolution for the result image file, see Resolution
class.public ImageDevice(int width, int height)
Initializes a new instance of the JpegDevice
class with provided image dimensions and
default resolution (=150).
width
- Image output width.height
- Image output height.public ImageDevice(PageSize pageSize)
Initializes a new instance of the JpegDevice
class with provided image dimensions and
default resolution (=150).
pageSize
- Page size of the output image.public ImageDevice(int width, int height, Resolution resolution)
Initializes a new instance of the JpegDevice
class with provided image dimensions and
resolution.
width
- Image output width.height
- Image output height.resolution
- Resolution for the result image file, see Resolution
class.public ImageDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the JpegDevice
class with provided image dimensions and
resolution.
pageSize
- Page size of the output image.resolution
- Resolution for the result image file, see Resolution
class.public static boolean isShadingPerformanceHigh()
Is the performance of shading processes High.
By default it true.
public static void setShadingPerformanceHigh(boolean value)
Sets the the performance of shading processes High or not.
value
- boolean valuepublic int getCoordinateType()
Gets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
PageCoordinateType
public void setCoordinateType(int value)
Sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
value
- PageCoordinateType elementPageCoordinateType
public RenderingOptions getRenderingOptions()
Gets rendering options.
public void setRenderingOptions(RenderingOptions value)
Sets rendering options.
value
- RenderingOptions elementpublic int getFormPresentationMode()
Gets form presentation mode.
FormPresentationMode
public void setFormPresentationMode(int value)
Sets form presentation mode.
value
- FormPresentationMode elementFormPresentationMode
public Resolution getResolution()
Gets image resolution.
public int getWidth()
Gets image output width.
public int getHeight()
Gets image output height.
public Rectangle getCropRectangle()
public void setCropRectangle(Rectangle cropRectangle)
cropRectangle
- Rectangle object