public class ImageRenderingOptions extends RenderingOptions
Represents rendering options for ImageDevice
. This options is used to specify output image format, compression, resolution etc.
Constructor and Description |
---|
ImageRenderingOptions()
Initializes a new instance of the
ImageRenderingOptions class; ImageFormat.Png will be used as default image format. |
ImageRenderingOptions(int format)
Initializes a new instance of the
ImageRenderingOptions class with specified image format. |
Modifier and Type | Method and Description |
---|---|
int |
getCompression()
Sets or gets Tagged Image File Format (TIFF)
Compression . |
int |
getFormat()
Sets or gets
ImageFormat . |
Resolution |
getHorizontalResolution()
Sets or gets horizontal resolution for output and internal (which are used during filters processing) images, in pixels per inch.
|
int |
getSmoothingMode()
Gets or sets the rendering quality for this Graphics.
|
TextOptions |
getText()
Gets a
TextOptions object which is used for configuration of text rendering. |
Resolution |
getVerticalResolution()
Sets or gets vertical resolution for output and internal (which are used during filters processing) images, in pixels per inch.
|
void |
setCompression(int value)
Sets or gets Tagged Image File Format (TIFF)
Compression . |
void |
setFormat(int value)
Sets or gets
ImageFormat . |
void |
setHorizontalResolution(Resolution value)
Sets or gets horizontal resolution for output and internal (which are used during filters processing) images, in pixels per inch.
|
void |
setSmoothingMode(int value)
Gets or sets the rendering quality for this Graphics.
|
void |
setVerticalResolution(Resolution value)
Sets or gets vertical resolution for output and internal (which are used during filters processing) images, in pixels per inch.
|
deepClone, getBackgroundColor, getCss, getPageSetup, memberwiseClone, setBackgroundColor, setPageSetup
public ImageRenderingOptions()
Initializes a new instance of the ImageRenderingOptions
class; ImageFormat.Png
will be used as default image format.
public ImageRenderingOptions(int format)
Initializes a new instance of the ImageRenderingOptions
class with specified image format.
format
- The output image format.public Resolution getHorizontalResolution()
Sets or gets horizontal resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.
getHorizontalResolution
in class RenderingOptions
public void setHorizontalResolution(Resolution value)
Sets or gets horizontal resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.
setHorizontalResolution
in class RenderingOptions
public Resolution getVerticalResolution()
Sets or gets vertical resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.
getVerticalResolution
in class RenderingOptions
public void setVerticalResolution(Resolution value)
Sets or gets vertical resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.
setVerticalResolution
in class RenderingOptions
public int getFormat()
Sets or gets ImageFormat
. By default this property is ImageFormat.Png
.
public void setFormat(int value)
Sets or gets ImageFormat
. By default this property is ImageFormat.Png
.
public int getCompression()
Sets or gets Tagged Image File Format (TIFF) Compression
. By default this property is Compression.LZW
.
public void setCompression(int value)
Sets or gets Tagged Image File Format (TIFF) Compression
. By default this property is Compression.LZW
.
public TextOptions getText()
Gets a TextOptions
object which is used for configuration of text rendering.
TextOptions
object.public int getSmoothingMode()
Gets or sets the rendering quality for this Graphics.
public void setSmoothingMode(int value)
Gets or sets the rendering quality for this Graphics.