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 or sets 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 or sets form presentation mode.
|
int |
getHeight()
Gets image output height.
|
RenderingOptions |
getRenderingOptions()
Gets or sets rendering options.
|
Resolution |
getResolution()
Gets image resolution.
|
int |
getWidth()
Gets image output width.
|
void |
setConvertFontsToUnicodeTTF(boolean value) |
void |
setCoordinateType(int value) |
void |
setCropRectangle(Rectangle cropRectangle)
Set rectangle that defines the area that will be converted into a picture.
|
void |
setFormPresentationMode(int value) |
void |
setRenderingOptions(RenderingOptions value) |
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 int getCoordinateType()
Gets or sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
public void setCoordinateType(int value)
public RenderingOptions getRenderingOptions()
Gets or sets rendering options.
public void setRenderingOptions(RenderingOptions value)
public int getFormPresentationMode()
Gets or sets form presentation mode.
public void setFormPresentationMode(int value)
public Resolution getResolution()
Gets image resolution.
public int getWidth()
Gets image output width.
public int getHeight()
Gets image output height.
public void setConvertFontsToUnicodeTTF(boolean value)
public Rectangle getCropRectangle()
public void setCropRectangle(Rectangle cropRectangle)
cropRectangle
- Rectangle objectCopyright © 2018 Aspose. All Rights Reserved.