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.

Inheritance

The ID2D1Bitmap1 interface inherits from ID2D1Bitmap. ID2D1Bitmap1 also has these types of members:

Methods

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.

Remarks

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

Requirements

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

ID2D1Bitmap