ColorRes method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short ColorRes (ILEADRaster *pRaster, short iBitsPerPixel, ColorResPaletteConstants Palette, ColorResDitherConstants Dither, short iColors);

Overview

Refer to Examining and Altering Bitmaps.

Remarks

Converts the bitmap from any bits-per-pixel to any bits-per-pixel, letting you specify the palette to use.

Also, when converting to 16-bits per pixel or higher, you can specify RGB or BGR color order.

Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

UserPalette property

Topics:

Raster Images: Doing Color Expansion or Reduction