Accusoft.ImagXpress12.Net
ColorDepth Method
See Also  Send Feedback
Accusoft.ImagXpressSdk Namespace > Processor Class : ColorDepth Method




bitsPerPixel
An integer value which represents the bits per pixel.

Valid values are 1, 4, 8, and 24.

paletteType
The PaletteType enumeration value set.
ditherType
The DitherType enumeration value set.

Glossary Item Box

Changes the bits per pixel of the current image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

bitsPerPixel
An integer value which represents the bits per pixel.

Valid values are 1, 4, 8, and 24.

paletteType
The PaletteType enumeration value set.
ditherType
The DitherType enumeration value set.

Remarks

For an example of how to use this method to do a Sepia effect, see the help for the AdjustRGB method.

Note: DitherType values of DitherType.BinarizeQuickText and DitherType.BinarizePhotoHalftone can only be used if bitsPerPixel is 1, otherwise a ProcessorException will occur because the image isn't being binarized.

See Also

©2013. Accusoft Corporation. All Rights Reserved.