Class QuantizeInfo
java.lang.Object
magick.Magick
magick.QuantizeInfo
Encapsulation of the QuantizedInfo structure.
- Author:
- Eric Yeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Automated destructor.intReturn the value of color_space field in the QuantizInfo structure.intReturn the value of dither field in the QuantizInfo structure.intReturn the value of measure_error field in the QuantizInfo structure.intReturn the value of number_colors field in the QuantizInfo structure.intReturn 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
parseImageGeometry, queryFonts
-
Constructor Details
-
QuantizeInfo
-
-
Method Details
-
finalize
-
init
Initialise the QuantizeInfo structure.- Throws:
MagickException- on error
-
setNumberColors
Set the value of number_colors field in the QuantizeInfo structure.- Parameters:
value- new value of number_colors- Throws:
MagickException- on error
-
getNumberColors
Return the value of number_colors field in the QuantizInfo structure.- Returns:
- current value of number_colors field
- Throws:
MagickException- on error
-
setTreeDepth
Set the value of tree_depth field in the QuantizeInfo structure.- Parameters:
value- new value of tree_depth- Throws:
MagickException- on error
-
getTreeDepth
Return the value of tree_depth field in the QuantizInfo structure.- Returns:
- current value of tree_depth field
- Throws:
MagickException- on error
-
setDither
Set the value of dither field in the QuantizeInfo structure.- Parameters:
value- new value of dither- Throws:
MagickException- on error
-
getDither
Return the value of dither field in the QuantizInfo structure.- Returns:
- current value of dither field
- Throws:
MagickException- on error
-
setColorspace
Set the value of colorspace field in the QuantizeInfo structure.- Parameters:
value- new value of colorspace- Throws:
MagickException- on error- See Also:
-
getColorspace
Return the value of color_space field in the QuantizInfo structure.- Returns:
- current value of color_space field
- Throws:
MagickException- on error
-
setMeasureError
Set the value of measure_error field in the QuantizeInfo structure.- Parameters:
value- new value of measure_error- Throws:
MagickException- on error
-
getMeasureError
Return the value of measure_error field in the QuantizInfo structure.- Returns:
- current value of measure_error field
- Throws:
MagickException- on error
-