Available in the LEADTOOLS Imaging toolkit. |
ColorRes method (Main Control)
Visual Basic
example
Visual C++ 4.0 example
Visual J++ example
Syntax short ColorRes (short iBitsPerPixel, short iPalette, short iDither, 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 .
See Also
Elements: UserPalette property