61.4 Summary of GDI Functionality

61.4.1 Bitmaps

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
CreateDIBitmap Creates a device-independent bitmap
CreateDIBSection Creates a bitmap that application has direct access to.
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
GetBitmapBehind Gets cached bits behind a window.
GetBitmapBits Retrieves the bits in memory for a specific bitmap
GetBitmapDimension Retrieves the dimensions of a bitmap
GetBitmapDimensionEx Retrieves the dimensions of a bitmap
GetDIBits Retrieves the bits in memory for a specific bitmap in device-independent form
GetROP2 Retrieves the current drawing mode
GetStretchBltMode Retrieves the current stretching mode
LoadBitmap Loads a bitmap from a resource file
MaskBlt Draws a bitmap through the specified mask
PatBlt Creates a bit pattern
PlgBlt Distorts a bitmap into the specified parallelogram
SetBitmapBits Sets the bits of a bitmap
SetBitmapDimension Sets the height and width of a bitmap
SetBitmapDimensionEx Sets the height and width of a bitmap
SetDIBits Sets a memory bitmap's bits from a DIB This function is similar to SetBitmapBits
SetDIBitsToDevice Sets bits on a device surface directly from a DIB
SetROP2 Sets the current drawing mode
SetStretchBltMode Sets the stretching mode
StretchBlt Copies a bitmap from a source to a destination device (compresses or stretches, if necessary)
StetchDIBits Stretches device-independent bits.