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.
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.