- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
- package magick;
- /**
- * Encapsulation of the QuantizedInfo structure.
- *
- * @author Eric Yeo
- */
- public class QuantizeInfo extends Magick {
- // Internal handle. Used as pointer to QuantizedInfo
- // structure in memory. We use long (64-bits) for
- // portibility.
- private long quantizeInfoHandle = 0;
- /**
- * Constructor.
- */
- public QuantizeInfo()
- throws MagickException
- {
- init();
- }
- /**
- * Automated destructor.
- */
- protected void finalize()
- {
- destroyQuantizeInfo();
- }
- /**
- * Initialise the QuantizeInfo structure.
- */
- public native void init()
- throws MagickException;
- /**
- * Deallocate the QuantizeInfo structure.
- */
- private native void destroyQuantizeInfo();
- /**
- * Set the value of number_colors field in the QuantizeInfo structure.
- *
- * @param value new value of number_colors
- */
- public native void setNumberColors(int value)
- throws MagickException;
- /**
- * Return the value of number_colors field in the QuantizInfo structure.
- *
- * @return current value of number_colors field
- */
- public native int getNumberColors()
- throws MagickException;
- /**
- * Set the value of tree_depth field in the QuantizeInfo structure.
- *
- * @param value new value of tree_depth
- */
- public native void setTreeDepth(int value)
- throws MagickException;
- /**
- * Return the value of tree_depth field in the QuantizInfo structure.
- *
- * @return current value of tree_depth field
- */
- public native int getTreeDepth()
- throws MagickException;
- /**
- * Set the value of dither field in the QuantizeInfo structure.
- *
- * @param value new value of dither
- */
- public native void setDither(int value)
- throws MagickException;
- /**
- * Return the value of dither field in the QuantizInfo structure.
- *
- * @return current value of dither field
- */
- public native int getDither()
- throws MagickException;
- /**
- * Set the value of colorspace field in the QuantizeInfo structure.
- *
- * @param value new value of colorspace
- * @see ColorspaceType
- */
- public native void setColorspace(int value)
- throws MagickException;
- /**
- * Return the value of color_space field in the QuantizInfo structure.
- *
- * @return current value of color_space field
- */
- public native int getColorspace()
- throws MagickException;
- /**
- * Set the value of measure_error field in the QuantizeInfo structure.
- *
- * @param value new value of measure_error
- */
- public native void setMeasureError(int value)
- throws MagickException;
- /**
- * Return the value of measure_error field in the QuantizInfo structure.
- *
- * @return current value of measure_error field
- */
- public native int getMeasureError()
- throws MagickException;
- }