2.11 Bitmap Functions

Bitmap functions display bitmaps. A bitmap is a matrix of memory bits that, when copied to a device, defines the color and pattern of a corresponding matrix of pixels on the device's display surface. Bitmaps are useful in drawing, charting, and word-processing applications because they let you prepare images in memory and then quickly copy them to the display. The following list briefly describes each bitmap function:

Function Description  
BitBlt Copies a bitmap from a source to a destination device.  
CreateBitmap Creates a bitmap.  
CreateBitmapIndirect Creates a bitmap described in a data structure.  
CreateCompatibleBitmap Creates a bitmap that is compatible with a specified device.  
CreateDiscardableBitmap Creates a discardable bitmap that is compatible with a specified device.  
ExtFloodFill Fills the display surface within a border or over an area of a given color.  
FloodFill Fills the display surface within a border.  
GetBitmapBits Retrieves the bits in memory for a specific bitmap.  
GetBitmapDimension Retrieves the dimensions of a bitmap.  
GetPixel Retrieves the RGB value for a pixel.  
LoadBitmap Loads a bitmap from a resource file.  
PatBlt Creates a bit pattern.  
SetBitmapBits Sets the bits of a bitmap.  
SetBitmapDimension Sets the height and width of a bitmap.  
SetPixel Sets the RGB value for a pixel.  
StretchBlt Copies a bitmap from a source to a destination device (compresses or stretches, if necessary).