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 the type of the color.

        Returns:
        The type of the color.
      • setColorType

        public void setColorType(int value)

        Sets the type of the color.

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

        public boolean getProgressive()

        Gets a value indicating whether this PngOptions is progressive.

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

        public void setProgressive(boolean value)

        Sets a value indicating whether this PngOptions is progressive.

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

        public int getFilterType()

        Gets the filter type used during png file save process.

        Returns:
        The filter type (PngFilterType).
        See Also:
        PngFilterType
      • setFilterType

        public void setFilterType(int value)

        Sets the filter type used during png file save process.

        Parameters:
        value - The filter type
        See Also:
        PngFilterType
      • getCompressionLevel

        public int getCompressionLevel()

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

        Returns:
        The image compression level
      • setCompressionLevel

        public void setCompressionLevel(int value)

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

        Parameters:
        value - The image compression level
      • getBitDepth

        public byte getBitDepth()

        Gets the bit depth.

        Returns:
        The bit depth.
      • setBitDepth

        public void setBitDepth(byte value)

        Sets the bit depth.

        Parameters:
        value - The bit depth
      • validate_internalized

        public void validate_internalized()

        The options validation routine.

        Throws:
        FrameworkException - Bit depth is not supported.
        com.aspose.ms.System.ArgumentOutOfRangeException - Color type is not member of PngColorType.