Accusoft.ImagXpressSdk Namespace > Processor Class : ColorDepth Method |
Valid values are 1, 4, 8, and 24.
'Declaration Public Sub ColorDepth( _ ByVal bitsPerPixel As Integer, _ ByVal paletteType As PaletteType, _ ByVal ditherType As DitherType _ )
'Usage Dim instance As Processor Dim bitsPerPixel As Integer Dim paletteType As PaletteType Dim ditherType As DitherType instance.ColorDepth(bitsPerPixel, paletteType, ditherType)
public void ColorDepth( int bitsPerPixel, PaletteType paletteType, DitherType ditherType )
public: void ColorDepth( int bitsPerPixel, PaletteType paletteType, DitherType ditherType )
public: void ColorDepth( int bitsPerPixel, PaletteType paletteType, DitherType ditherType )
Valid values are 1, 4, 8, and 24.
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.