ImageGear for Java
ImGearOctreeReductionOptions Class Members
Fields 

The following tables list the members exposed by ImGearOctreeReductionOptions.

Public Constructors
 NameDescription
Public ConstructorImGearOctreeReductionOptions ConstructorInitializes a new instance of the ImGearOctreeReductionOptions class object.  
Top
Public Fields
 NameDescription
Public FielderrorDiffusionSpecifies whether to improve accuracy using error diffusion.

Boolean value.

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.

 
Public FieldfastRemapSpecifies whether to optimize for speed or quality.

Set to true to optimize for speed; set to false to optimize for quality.

 
Public FieldmaxColorsMaximum number of colors used by the output image.

Integer value in range [8...256].

Note: If 16 or less colors are specified, output image will be 4 bpp indexed; otherwise it will be 8 bpp indexed.

 
Public FieldpalettePalette to use for output.

A 16-256 color palette or null.

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.

com.accusoft.imagegear.core.ImGearRGBQuad

 
Public FieldpaletteSizeNumber of colors present in specified palette.

Integer in range [8...256]. If palette field is non-null, this must less than or equal to the number of colors in palette field, and greater than or equal to maxColors field.

If no palette is specified ( palette field is null), this option is ignored and an optimized palette is automatically generated.

 
Top
See Also

Reference

ImGearOctreeReductionOptions Class
com.accusoft.imagegear.processing Package

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback