ID2D1Bitmap1 interface (d2d1_1.h)

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 inherits from ID2D1Bitmap. ID2D1Bitmap1 also has these types of members:


The ID2D1Bitmap1 interface has these methods.


Gets the color context information associated with the bitmap.

Gets the options used in creating the bitmap.

Gets either the surface that was specified when the bitmap was created, or the default surface created when the bitmap was created.

Maps the given bitmap into memory.

Unmaps the bitmap from memory.


Creating ID2D1Bitmap Objects

Use one of these methods to create an ID2D1Bitmap object.

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.)


Requirement Value
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]
Target Platform Windows
Header d2d1_1.h

See also