Package magick

Class QuantizeInfo


  • public class QuantizeInfo
    extends Magick
    Encapsulation of the QuantizedInfo structure.
    Author:
    Eric Yeo
    • Constructor Summary

      Constructors 
      Constructor Description
      QuantizeInfo()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()
      Automated destructor.
      int getColorspace()
      Return the value of color_space field in the QuantizInfo structure.
      int getDither()
      Return the value of dither field in the QuantizInfo structure.
      int getMeasureError()
      Return the value of measure_error field in the QuantizInfo structure.
      int getNumberColors()
      Return the value of number_colors field in the QuantizInfo structure.
      int getTreeDepth()
      Return the value of tree_depth field in the QuantizInfo structure.
      void init()
      Initialise the QuantizeInfo structure.
      void setColorspace​(int value)
      Set the value of colorspace field in the QuantizeInfo structure.
      void setDither​(int value)
      Set the value of dither field in the QuantizeInfo structure.
      void setMeasureError​(int value)
      Set the value of measure_error field in the QuantizeInfo structure.
      void setNumberColors​(int value)
      Set the value of number_colors field in the QuantizeInfo structure.
      void setTreeDepth​(int value)
      Set the value of tree_depth field in the QuantizeInfo structure.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • finalize

        protected void finalize()
        Automated destructor.
        Overrides:
        finalize in class java.lang.Object
      • setNumberColors

        public void setNumberColors​(int value)
                             throws MagickException
        Set the value of number_colors field in the QuantizeInfo structure.
        Parameters:
        value - new value of number_colors
        Throws:
        MagickException - on error
      • getNumberColors

        public int getNumberColors()
                            throws MagickException
        Return the value of number_colors field in the QuantizInfo structure.
        Returns:
        current value of number_colors field
        Throws:
        MagickException - on error
      • setTreeDepth

        public void setTreeDepth​(int value)
                          throws MagickException
        Set the value of tree_depth field in the QuantizeInfo structure.
        Parameters:
        value - new value of tree_depth
        Throws:
        MagickException - on error
      • getTreeDepth

        public int getTreeDepth()
                         throws MagickException
        Return the value of tree_depth field in the QuantizInfo structure.
        Returns:
        current value of tree_depth field
        Throws:
        MagickException - on error
      • setDither

        public void setDither​(int value)
                       throws MagickException
        Set the value of dither field in the QuantizeInfo structure.
        Parameters:
        value - new value of dither
        Throws:
        MagickException - on error
      • getDither

        public int getDither()
                      throws MagickException
        Return the value of dither field in the QuantizInfo structure.
        Returns:
        current value of dither field
        Throws:
        MagickException - on error
      • setColorspace

        public void setColorspace​(int value)
                           throws MagickException
        Set the value of colorspace field in the QuantizeInfo structure.
        Parameters:
        value - new value of colorspace
        Throws:
        MagickException - on error
        See Also:
        ColorspaceType
      • getColorspace

        public int getColorspace()
                          throws MagickException
        Return the value of color_space field in the QuantizInfo structure.
        Returns:
        current value of color_space field
        Throws:
        MagickException - on error
      • setMeasureError

        public void setMeasureError​(int value)
                             throws MagickException
        Set the value of measure_error field in the QuantizeInfo structure.
        Parameters:
        value - new value of measure_error
        Throws:
        MagickException - on error
      • getMeasureError

        public int getMeasureError()
                            throws MagickException
        Return the value of measure_error field in the QuantizInfo structure.
        Returns:
        current value of measure_error field
        Throws:
        MagickException - on error