magick
Class QuantizeInfo

java.lang.Object
  extended by magick.Magick
      extended by magick.QuantizeInfo

public class QuantizeInfo
extends Magick

Encapsulation of the QuantizedInfo structure.

Author:
Eric Yeo

Constructor Summary
QuantizeInfo()
          Constructor.
 
Method Summary
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 magick.Magick
parseImageGeometry
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuantizeInfo

public QuantizeInfo()
             throws MagickException
Constructor.

Throws:
MagickException
Method Detail

finalize

protected void finalize()
Automated destructor.

Overrides:
finalize in class java.lang.Object

init

public void init()
          throws MagickException
Initialise the QuantizeInfo structure.

Throws:
MagickException

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

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

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

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

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

getDither

public int getDither()
              throws MagickException
Return the value of dither field in the QuantizInfo structure.

Returns:
current value of dither field
Throws:
MagickException

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
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

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

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