VectorRasterizationOptions
The vector rasterization options.
Constructors
| Constructor | Description |
|---|---|
| VectorRasterizationOptions() |
Methods
| Method | Description |
|---|---|
| getBorderX() | Deprecated. Please, use Margins property instead |
| setBorderX(float value) | Deprecated. Please, use Margins property instead |
| getMargins() | Gets or sets Margins. |
| setMargins(Margins value) | Gets or sets Margins. |
| getBorderY() | Deprecated. Please, use Margins property instead |
| setBorderY(float value) | Deprecated. Please, use Margins property instead |
| getPageHeight() | Gets or sets the page height. |
| setPageHeight(float value) | Gets or sets the page height. |
| getPageSize() | Gets or sets the page size. |
| setPageSize(com.aspose.cad.SizeF value) | Gets or sets the page size. |
| getPageWidth() | Gets or sets the page width. |
| setPageWidth(float value) | Gets or sets the page width. |
| getBackgroundColor() | Gets or sets a background color. |
| setBackgroundColor(com.aspose.cad.Color value) | Gets or sets a background color. |
| getEmbedBackground() | Wether background of color not equal to default background color of output format (white for PDF and SVG, transparent for raster) should be embedded into output image (if not embedded, background will be default of the output render system, but color of the content that depend on background color will be rendered using stated background color) |
| setEmbedBackground(boolean value) | Wether background of color not equal to default background color of output format (white for PDF and SVG, transparent for raster) should be embedded into output image (if not embedded, background will be default of the output render system, but color of the content that depend on background color will be rendered using stated background color) |
| getDrawColor() | Gets or sets a foreground color. |
| setDrawColor(com.aspose.cad.Color value) | Gets or sets a foreground color. |
| getUnitType() | Gets or sets unit type of export result. |
| setUnitType(int value) | Gets or sets unit type of export result. |
| getContentAsBitmap() | Gets or sets a value indicating whether content of a drawing is represented as image inside Pdf. Applicable only for CAD to Pdf export. Default is false. |
| setContentAsBitmap(boolean value) | Gets or sets a value indicating whether content of a drawing is represented as image inside Pdf. Applicable only for CAD to Pdf export. Default is false. |
| getGraphicsOptions() | Gets or sets options to render bitmap inside pdf (if ContentAsBitmap is set to true). |
| setGraphicsOptions(com.aspose.cad.imageoptions.GraphicsOptions value) | Gets or sets options to render bitmap inside pdf (if ContentAsBitmap is set to true). |
| getLayoutPageSizes() | Gets or sets the layout page sizes. |
| setLayoutPageSizes(HashMap<String,com.aspose.cad.SizeF> value) | Gets or sets the layout page sizes. |
| getRelativeScale() | Scale of exported region relative to whole document’s image. Calculated as ratio of corresponding dimension of exported region to larger dimension of exported document. |
| setRelativeScale(float value) | Scale of exported region relative to whole document’s image. Calculated as ratio of corresponding dimension of exported region to larger dimension of exported document. |
| getRelativePosition() | Position of top left corner of exported region relative to whole document’s image, in relative units - 0,0 is top left, 1,1 is bottom of document’s image. |
| setRelativePosition(com.aspose.cad.PointF value) | Position of top left corner of exported region relative to whole document’s image, in relative units - 0,0 is top left, 1,1 is bottom of document’s image. |
VectorRasterizationOptions()
public VectorRasterizationOptions()
getBorderX()
@Deprecated public float getBorderX()
Deprecated. Please, use Margins property instead
Returns: float - The border X.
setBorderX(float value)
@Deprecated public void setBorderX(float value)
Deprecated. Please, use Margins property instead
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The border X. |
getMargins()
public final Margins getMargins()
Gets or sets Margins.
Returns: Margins
setMargins(Margins value)
public final void setMargins(Margins value)
Gets or sets Margins.
getBorderY()
@Deprecated public float getBorderY()
Deprecated. Please, use Margins property instead
Returns: float - The border Y.
setBorderY(float value)
@Deprecated public void setBorderY(float value)
Deprecated. Please, use Margins property instead
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The border Y. |
getPageHeight()
public float getPageHeight()
Gets or sets the page height.
Returns: float
setPageHeight(float value)
public void setPageHeight(float value)
Gets or sets the page height.
getPageSize()
public com.aspose.cad.SizeF getPageSize()
Gets or sets the page size.
Returns: com.aspose.cad.SizeF
setPageSize(com.aspose.cad.SizeF value)
public void setPageSize(com.aspose.cad.SizeF value)
Gets or sets the page size.
getPageWidth()
public float getPageWidth()
Gets or sets the page width.
Returns: float
setPageWidth(float value)
public void setPageWidth(float value)
Gets or sets the page width.
getBackgroundColor()
public com.aspose.cad.Color getBackgroundColor()
Gets or sets a background color.
Returns: com.aspose.cad.Color
setBackgroundColor(com.aspose.cad.Color value)
public void setBackgroundColor(com.aspose.cad.Color value)
Gets or sets a background color.
getEmbedBackground()
public final boolean getEmbedBackground()
Wether background of color not equal to default background color of output format (white for PDF and SVG, transparent for raster) should be embedded into output image (if not embedded, background will be default of the output render system, but color of the content that depend on background color will be rendered using stated background color)
Returns: boolean
setEmbedBackground(boolean value)
public final void setEmbedBackground(boolean value)
Wether background of color not equal to default background color of output format (white for PDF and SVG, transparent for raster) should be embedded into output image (if not embedded, background will be default of the output render system, but color of the content that depend on background color will be rendered using stated background color)
getDrawColor()
public com.aspose.cad.Color getDrawColor()
Gets or sets a foreground color.
Returns: com.aspose.cad.Color
setDrawColor(com.aspose.cad.Color value)
public void setDrawColor(com.aspose.cad.Color value)
Gets or sets a foreground color.
getUnitType()
public int getUnitType()
Gets or sets unit type of export result.
Returns: int
setUnitType(int value)
public void setUnitType(int value)
Gets or sets unit type of export result.
getContentAsBitmap()
public boolean getContentAsBitmap()
Gets or sets a value indicating whether content of a drawing is represented as image inside Pdf. Applicable only for CAD to Pdf export. Default is false.
Returns: boolean
setContentAsBitmap(boolean value)
public void setContentAsBitmap(boolean value)
Gets or sets a value indicating whether content of a drawing is represented as image inside Pdf. Applicable only for CAD to Pdf export. Default is false.
getGraphicsOptions()
public com.aspose.cad.imageoptions.GraphicsOptions getGraphicsOptions()
Gets or sets options to render bitmap inside pdf (if ContentAsBitmap is set to true).
Returns: com.aspose.cad.imageoptions.GraphicsOptions
setGraphicsOptions(com.aspose.cad.imageoptions.GraphicsOptions value)
public void setGraphicsOptions(com.aspose.cad.imageoptions.GraphicsOptions value)
Gets or sets options to render bitmap inside pdf (if ContentAsBitmap is set to true).
getLayoutPageSizes()
public final HashMap<String,com.aspose.cad.SizeF> getLayoutPageSizes()
Gets or sets the layout page sizes.
Returns: HashMap<String,com.aspose.cad.SizeF> - The layout page sizes.
setLayoutPageSizes(HashMap<String,com.aspose.cad.SizeF> value)
public final void setLayoutPageSizes(HashMap<String,com.aspose.cad.SizeF> value)
Gets or sets the layout page sizes.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | HashMap<String | The layout page sizes. |
getRelativeScale()
public final float getRelativeScale()
Scale of exported region relative to whole document’s image. Calculated as ratio of corresponding dimension of exported region to larger dimension of exported document.
Returns: float
setRelativeScale(float value)
public final void setRelativeScale(float value)
Scale of exported region relative to whole document’s image. Calculated as ratio of corresponding dimension of exported region to larger dimension of exported document.
getRelativePosition()
public final com.aspose.cad.PointF getRelativePosition()
Position of top left corner of exported region relative to whole document’s image, in relative units - 0,0 is top left, 1,1 is bottom of document’s image.
Returns: com.aspose.cad.PointF
setRelativePosition(com.aspose.cad.PointF value)
public final void setRelativePosition(com.aspose.cad.PointF value)
Position of top left corner of exported region relative to whole document’s image, in relative units - 0,0 is top left, 1,1 is bottom of document’s image.