SvgOptions
Inheritance: java.lang.Object, ImageOptionsBase
The SVG file format creation options.
Constructors
| Constructor | Description |
|---|---|
| SvgOptions() |
Methods
| Method | Description |
|---|---|
| getColorType() | Gets or sets the color type for SVG image. |
| setColorType(int value) | Gets or sets the color type for SVG image. |
| getTextAsShapes() | Gets or sets a value indicating whether text must be converted as shapes. By default text will be converted as shapes. |
| setTextAsShapes(boolean value) | Gets or sets a value indicating whether text must be converted as shapes. By default text will be converted as shapes. |
| getCallback() | Gets or sets the font store options. |
| setCallback(ISvgResourceKeeperCallback value) | Gets or sets the font store options. |
| getRescaleSubpixelLinewidths() | Wether sub-pixel lindewidths should be rescaled |
| setRescaleSubpixelLinewidths(boolean value) | Wether sub-pixel lindewidths should be rescaled |
| getUseAbsoluteRescaling() | Wether minimum non-rescaled line widh should be defined relative to whole image size (if false) or in pixels (if true) |
| setUseAbsoluteRescaling(boolean value) | Wether minimum non-rescaled line widh should be defined relative to whole image size (if false) or in pixels (if true) |
| getMinimumRelativeLinewidthRatio() | Lines with width less than image’s size\minimumRelativeLinewidthRatio will be rescaled if relative rescaling is used |
| setMinimumRelativeLinewidthRatio(float value) | Lines with width less than image’s size\minimumRelativeLinewidthRatio will be rescaled if relative rescaling is used |
| getMinimumAbsoluteNonscaledLinewidth() | Lines with width in pixels less than this will be rescaled |
| setMinimumAbsoluteNonscaledLinewidth(float value) | Lines with width in pixels less than this will be rescaled |
| getMinimumLinewidth() | Minumum width of the line (i.e. width of zero-width line) relative to minimum non-rescaled linewidth |
| setMinimumLinewidth(float value) | Minumum width of the line (i.e. width of zero-width line) relative to minimum non-rescaled linewidth |
| getTargetFormat() |
SvgOptions()
public SvgOptions()
getColorType()
public final int getColorType()
Gets or sets the color type for SVG image.
Returns: int - The type of the color of SVG image.
setColorType(int value)
public final void setColorType(int value)
Gets or sets the color type for SVG image.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The type of the color of SVG image. |
getTextAsShapes()
public final boolean getTextAsShapes()
Gets or sets a value indicating whether text must be converted as shapes. By default text will be converted as shapes.
Returns: boolean - true if all text is turned into SVG shapes in the convertion; otherwise, false .
setTextAsShapes(boolean value)
public final void setTextAsShapes(boolean value)
Gets or sets a value indicating whether text must be converted as shapes. By default text will be converted as shapes.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true if all text is turned into SVG shapes in the convertion; otherwise, false . |
getCallback()
public final ISvgResourceKeeperCallback getCallback()
Gets or sets the font store options.
Returns: ISvgResourceKeeperCallback - The font store options.
setCallback(ISvgResourceKeeperCallback value)
public final void setCallback(ISvgResourceKeeperCallback value)
Gets or sets the font store options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ISvgResourceKeeperCallback | The font store options. |
getRescaleSubpixelLinewidths()
public final boolean getRescaleSubpixelLinewidths()
Wether sub-pixel lindewidths should be rescaled
Returns: boolean
setRescaleSubpixelLinewidths(boolean value)
public final void setRescaleSubpixelLinewidths(boolean value)
Wether sub-pixel lindewidths should be rescaled
getUseAbsoluteRescaling()
public final boolean getUseAbsoluteRescaling()
Wether minimum non-rescaled line widh should be defined relative to whole image size (if false) or in pixels (if true)
Returns: boolean
setUseAbsoluteRescaling(boolean value)
public final void setUseAbsoluteRescaling(boolean value)
Wether minimum non-rescaled line widh should be defined relative to whole image size (if false) or in pixels (if true)
getMinimumRelativeLinewidthRatio()
public final float getMinimumRelativeLinewidthRatio()
Lines with width less than image’s size\minimumRelativeLinewidthRatio will be rescaled if relative rescaling is used
Returns: float
setMinimumRelativeLinewidthRatio(float value)
public final void setMinimumRelativeLinewidthRatio(float value)
Lines with width less than image’s size\minimumRelativeLinewidthRatio will be rescaled if relative rescaling is used
getMinimumAbsoluteNonscaledLinewidth()
public final float getMinimumAbsoluteNonscaledLinewidth()
Lines with width in pixels less than this will be rescaled
Returns: float
setMinimumAbsoluteNonscaledLinewidth(float value)
public final void setMinimumAbsoluteNonscaledLinewidth(float value)
Lines with width in pixels less than this will be rescaled
getMinimumLinewidth()
public final float getMinimumLinewidth()
Minumum width of the line (i.e. width of zero-width line) relative to minimum non-rescaled linewidth
Returns: float
setMinimumLinewidth(float value)
public final void setMinimumLinewidth(float value)
Minumum width of the line (i.e. width of zero-width line) relative to minimum non-rescaled linewidth
getTargetFormat()
public long getTargetFormat()
Returns: long