Packages

 

com.aspose.cad.imageoptions

Class PngOptions



  • public class PngOptions
    extends ImageOptionsBase

    The png file format create options.

    • Constructor Detail

      • PngOptions

        public PngOptions()

        Initializes a new instance of the PngOptions class.

      • PngOptions

        public PngOptions(PngOptions pngOptions)

        Initializes a new instance of the JpegOptions class.

        Parameters:
        pngOptions - The PNG options.
    • Method Detail

      • getXmpData

        public com.aspose.cad.xmp.XmpPacketWrapper getXmpData()

        Gets or sets the XMP metadata container.

        Overrides:
        getXmpData in class ImageOptionsBase
        Returns:
        The XMP data container.
      • setXmpData

        public void setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)

        Gets or sets the XMP metadata container.

        Overrides:
        setXmpData in class ImageOptionsBase
        Parameters:
        value - The XMP data container.
      • getColorType

        public int getColorType()

        Gets or sets the type of the color.

        Returns:
        The type of the color.
      • setColorType

        public void setColorType(int value)

        Gets or sets the type of the color.

        Parameters:
        value - The type of the color.
      • getProgressive

        public boolean getProgressive()

        Gets or sets a value indicating whether this PngOptions is progressive.

        Returns:
        true if progressive; otherwise, false.
      • setProgressive

        public void setProgressive(boolean value)

        Gets or sets a value indicating whether this PngOptions is progressive.

        Parameters:
        value - true if progressive; otherwise, false.
      • getFilterType

        public int getFilterType()

        Gets or sets the filter type used during png file save process.

      • setFilterType

        public void setFilterType(int value)

        Gets or sets the filter type used during png file save process.

      • getCompressionLevel

        public int getCompressionLevel()

        The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.

      • setCompressionLevel

        public void setCompressionLevel(int value)

        The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.

      • getBitDepth

        public byte getBitDepth()

        The bit depth.

      • setBitDepth

        public void setBitDepth(byte value)

        The bit depth.