ImageGearJava Project > com.accusoft.imagegear.processing Package : ImGearOctreeReductionOptions Class |
The following tables list the members exposed by ImGearOctreeReductionOptions.
Name | Description | |
---|---|---|
ImGearOctreeReductionOptions Constructor | Initializes a new instance of the ImGearOctreeReductionOptions class object. |
Name | Description | |
---|---|---|
errorDiffusion | Specifies whether to improve accuracy using error diffusion.
Error diffusion attempts to spread out error (the difference in color between input and output pixels) across a two dimensional space in the output image. It increases overall accuracy, but can give the image a more speckled or dithered appearance. It also decreases the effectiveness of most compression algorithms since adjacent pixels are less likely to be the same color. Using octree reduction without error diffusion is sometimes known as ?nearest color? reduction. | |
fastRemap | Specifies whether to optimize for speed or quality.
| |
maxColors | Maximum number of colors used by the output image.
Note: If 16 or less colors are specified, output image will be 4 bpp indexed; otherwise it will be 8 bpp indexed. | |
palette | Palette to use for output.
This option lets you specify a palette containing the colors to use for the output image. If no palette is specified, an optimized palette is constructed based on the contents of the image. | |
paletteSize | Number of colors present in specified palette.
If no palette is specified ( palette field is null), this option is ignored and an optimized palette is automatically generated. |