Represents a bitmap that can be used as a surface for an ID2D1DeviceContext or mapped into system memory, and can contain additional color context information.
The ID2D1Bitmap1 interface has these methods.
|ID2D1Bitmap1::GetColorContext||Gets the color context information associated with the bitmap.|
|ID2D1Bitmap1::GetOptions||Gets the options used in creating the bitmap.|
|ID2D1Bitmap1::GetSurface||Gets either the surface that was specified when the bitmap was created, or the default surface created when the bitmap was created.|
|ID2D1Bitmap1::Map||Maps the given bitmap into memory.|
|ID2D1Bitmap1::Unmap||Unmaps the bitmap from memory.|
For information about the pixel formats supported by Direct2D bitmaps, see Supported Pixel Formats and Alpha Modes.
An ID2D1Bitmap is a device-dependent resource: your application should create bitmaps after it initializes the render target with which the bitmap will be used, and recreate the bitmap whenever the render target needs recreated. (For more information about resources, see Resources Overview.)
|Minimum supported client||Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]|