Package magick
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 void
finalize()
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
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, queryFonts
-
Constructor Details
-
QuantizeInfo
Constructor.- Throws:
MagickException
- on error
-
-
Method Details
-
finalize
protected void finalize()Automated destructor. -
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
-