Accusoft.ImagXpress13.Net
ColorDepth Method




An integer value which represents the bits per pixel.

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

The PaletteType enumeration value set.
The DitherType enumeration value set.
Changes the bits per pixel of the current image.
Syntax
'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
) 

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

Reference

Processor Class
Processor Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback