Creating and Loading a Custom Bit Map

An application can create a custom bit map by setting the bits in an array and passing the array to GpiCreateBitmap or by running the Icon Editor and loading the bit map with GpiLoadBitmap.

To create a custom bit map with an array, an application:

If the application is to use this bit map as a fill pattern, it assigns the bit map a local identifier by calling GpiSetBitmapId.

To load a custom bit map that was created with the Icon Editor:

An application can use GpiLoadBitmap to load any bit map from a file that conforms to any of the standard OS/2 bit-map formats or to a device-specific format supported by the device concerned. This means that an application can load a bit map created by another application, if that application created the correct bit-map header and stored the bit-map bits correctly.


[Back: Using the Icon Editor]
[Next: Storing Color Information in a Bit Map]