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

      • getColorType

        public int getColorType()

        Gets or sets the type of the color.

        Value: The type of the color.
      • setColorType

        public void setColorType(int value)

        Gets or sets the type of the color.

        Value: The type of the color.
      • getProgressive

        public boolean getProgressive()

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

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

        public void setProgressive(boolean value)

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

        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.

      • validate_internalized

        public void validate_internalized()

        The options validation routine.

        Throws:
        FrameworkException
        com.aspose.ms.System.ArgumentOutOfRangeException