DIB_PAL_INDICES and CBM_CREATEDIB Not Supported in Win32sLast reviewed: November 2, 1995Article ID: Q108497 |
The information in this article applies to:
The Windows NT implementation of the Win32 application programming interface (API) includes two new flags, DIB_PAL_INDICES and CBM_CREATEDIB, that can be used with various device-independent bitmap (DIB) APIs. These flags are not supported by Windows 3.1, Win32s, or Windows 95.
DIB_PAL_INDICESIn Windows NT, the DIB_PAL_INDICES flag can be used with the following APIs:
CreateDIBitmap() CreateDIBPatternBrush() CreateDIBPatternBrushPt() SetDIBits() GetDIBits() SetDIBitsToDevice() StretchDIBits()When the dwUsage parameter is DIB_PAL_INDICES, the associated DIB does not have a color table. In this case, the bitmap bits are indices into the device palette. Applications written to run on Windows 3.1 or Win32s should use DIB_PAL_COLORS or DIB_RGB_COLORS instead of DIB_PAL_INDICES. Windows 95 does not support DIB_PAL_INDICES.
CBM_CREATEDIBIn Windows 3.1, CreateDIBitmap() creates a device-dependent bitmap (DDB) from a DIB definition and optionally initializes the DDB. In Windows NT, the CBM_CREATEDIB flag can be used with CreateDIBitmap() to create a new DIB instead of a DDB. This functionality is not present in Windows 3.1 or Win32s. Windows 95 does not support CBM_CREATEDIB. Equivalent functionality is provided in Windows 95 by CreateDIBSection().
|
Additional reference words: 1.00 1.10 1.20 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |