See Also Examples Applies To
Converts the pixel format of the native GdPicture image with Std. Gdiplus color palette convertion if needed.
Syntax
object.ConvertToPixelFormatCR (nPixelDepth)
The ConvertToPixelFormatCR syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nPixelDepth | Required. Long.Bit Per Pixel. Can be: 1, 4, 8, 16, 24, 32, 48 or 64. |
Returns
Long. GdPictureStatus
Remarks
This function can fail with version of gdiplus.dll < 6 if you use 1, 4 or 8 value for nPixelDepth. Call the GetGdiplusVersion() function to catch the dll version used by the component.
Category
Palette Conversions & Colors Reduction