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 QuantizeInfo()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Automated destructor.intgetColorspace()Return the value of color_space field in the QuantizInfo structure.intgetDither()Return the value of dither field in the QuantizInfo structure.intgetMeasureError()Return the value of measure_error field in the QuantizInfo structure.intgetNumberColors()Return the value of number_colors field in the QuantizInfo structure.intgetTreeDepth()Return the value of tree_depth field in the QuantizInfo structure.voidinit()Initialise the QuantizeInfo structure.voidsetColorspace(int value)Set the value of colorspace field in the QuantizeInfo structure.voidsetDither(int value)Set the value of dither field in the QuantizeInfo structure.voidsetMeasureError(int value)Set the value of measure_error field in the QuantizeInfo structure.voidsetNumberColors(int value)Set the value of number_colors field in the QuantizeInfo structure.voidsetTreeDepth(int value)Set the value of tree_depth field in the QuantizeInfo structure.-
Methods inherited from class magick.Magick
parseImageGeometry, queryFonts
-
-
-
-
Constructor Detail
-
QuantizeInfo
public QuantizeInfo() throws MagickExceptionConstructor.- Throws:
MagickException- on error
-
-
Method Detail
-
finalize
protected void finalize()
Automated destructor.- Overrides:
finalizein classjava.lang.Object
-
init
public void init() throws MagickExceptionInitialise the QuantizeInfo structure.- Throws:
MagickException- on error
-
setNumberColors
public void setNumberColors(int value) throws MagickExceptionSet 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 MagickExceptionReturn 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 MagickExceptionSet 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 MagickExceptionReturn 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 MagickExceptionSet the value of dither field in the QuantizeInfo structure.- Parameters:
value- new value of dither- Throws:
MagickException- on error
-
getDither
public int getDither() throws MagickExceptionReturn 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 MagickExceptionSet 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 MagickExceptionReturn 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 MagickExceptionSet 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 MagickExceptionReturn the value of measure_error field in the QuantizInfo structure.- Returns:
- current value of measure_error field
- Throws:
MagickException- on error
-
-