Packages

 

com.aspose.cad.imageoptions

Class VectorRasterizationOptions

  • Direct Known Subclasses:
    CadRasterizationOptions


    public abstract class VectorRasterizationOptions
    extends Object

    The vector rasterization options.

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      com.aspose.cad.Color getBackgroundColor()
      Gets or sets a background color.
      float getBorderX()
      Deprecated. 
      Please, use Margins property instead
      float getBorderY()
      Deprecated. 
      Please, use Margins property instead
      boolean getContentAsBitmap()
      Gets or sets a value indicating whether content of a drawing is represented as image inside Pdf.
      com.aspose.cad.Color getDrawColor()
      Gets or sets a foreground color.
      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)
      com.aspose.cad.imageoptions.GraphicsOptions getGraphicsOptions()
      Gets or sets options to render bitmap inside pdf (if ContentAsBitmap is set to true).
      HashMap<String,com.aspose.cad.SizeF> getLayoutPageSizes()
      Gets or sets the layout page sizes.
      Margins getMargins()
      Gets or sets Margins.
      float getPageHeight()
      Gets or sets the page height.
      com.aspose.cad.SizeF getPageSize()
      Gets or sets the page size.
      float getPageWidth()
      Gets or sets the page width.
      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.
      float getRelativeScale()
      Scale of exported region relative to whole document's image.
      int getUnitType()
      Gets or sets unit type of export result.
      void setBackgroundColor(com.aspose.cad.Color value)
      Gets or sets a background color.
      void setBorderX(float value)
      Deprecated. 
      Please, use Margins property instead
      void setBorderY(float value)
      Deprecated. 
      Please, use Margins property instead
      void setContentAsBitmap(boolean value)
      Gets or sets a value indicating whether content of a drawing is represented as image inside Pdf.
      void setDrawColor(com.aspose.cad.Color value)
      Gets or sets a foreground color.
      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)
      void setGraphicsOptions(com.aspose.cad.imageoptions.GraphicsOptions value)
      Gets or sets options to render bitmap inside pdf (if ContentAsBitmap is set to true).
      void setLayoutPageSizes(HashMap<String,com.aspose.cad.SizeF> value)
      Gets or sets the layout page sizes.
      void setMargins(Margins value)
      Gets or sets Margins.
      void setPageHeight(float value)
      Gets or sets the page height.
      void setPageSize(com.aspose.cad.SizeF value)
      Gets or sets the page size.
      void setPageWidth(float value)
      Gets or sets the page width.
      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.
      void setRelativeScale(float value)
      Scale of exported region relative to whole document's image.
      void setUnitType(int value)
      Gets or sets unit type of export result.
    • Constructor Detail

      • VectorRasterizationOptions

        public VectorRasterizationOptions()
    • Method Detail

      • getBorderX

        @Deprecated
        public float getBorderX()
        Deprecated. Please, use Margins property instead

        Gets or sets the border X.

        Returns:
        The border X.
      • setBorderX

        @Deprecated
        public void setBorderX(float value)
        Deprecated. Please, use Margins property instead

        Gets or sets the border X.

        Parameters:
        value - The border X.
      • getMargins

        public final Margins getMargins()

        Gets or sets Margins.

      • setMargins

        public final void setMargins(Margins value)

        Gets or sets Margins.

      • getBorderY

        @Deprecated
        public float getBorderY()
        Deprecated. Please, use Margins property instead

        Gets or sets the border Y.

        Returns:
        The border Y.
      • setBorderY

        @Deprecated
        public void setBorderY(float value)
        Deprecated. Please, use Margins property instead

        Gets or sets the border Y.

        Parameters:
        value - The border Y.
      • getPageHeight

        public float getPageHeight()

        Gets or sets the page height.

      • setPageHeight

        public void setPageHeight(float value)

        Gets or sets the page height.

      • getPageSize

        public com.aspose.cad.SizeF getPageSize()

        Gets or sets the page size.

      • setPageSize

        public void setPageSize(com.aspose.cad.SizeF value)

        Gets or sets the page size.

      • getPageWidth

        public float getPageWidth()

        Gets or sets the page width.

      • setPageWidth

        public void setPageWidth(float value)

        Gets or sets the page width.

      • getBackgroundColor

        public com.aspose.cad.Color getBackgroundColor()

        Gets or sets a background color.

      • setBackgroundColor

        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)

      • setEmbedBackground

        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.

      • setDrawColor

        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.

      • setUnitType

        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.

      • setContentAsBitmap

        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).

      • setGraphicsOptions

        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:
        The layout page sizes.
      • setLayoutPageSizes

        public final void setLayoutPageSizes(HashMap<String,com.aspose.cad.SizeF> value)

        Gets or sets the layout page sizes.

        Parameters:
        value - 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.

      • setRelativeScale

        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.

      • setRelativePosition

        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.