Package magick

Class QuantizeInfo

java.lang.Object
magick.Magick
magick.QuantizeInfo

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

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Automated destructor.
    int
    Return the value of color_space field in the QuantizInfo structure.
    int
    Return the value of dither field in the QuantizInfo structure.
    int
    Return the value of measure_error field in the QuantizInfo structure.
    int
    Return the value of number_colors field in the QuantizInfo structure.
    int
    Return the value of tree_depth field in the QuantizInfo structure.
    void
    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 magick.Magick

    parseImageGeometry, queryFonts

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • finalize

      protected void finalize()
      Automated destructor.
      Overrides:
      finalize in class Object
    • init

      public void init() throws MagickException
      Initialise the QuantizeInfo structure.
      Throws:
      MagickException - on error
    • 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:
    • 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