Export (0) Print
Expand All

ID2D1Bitmap1 interface

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.

When to implement

Custom implementations are not supported.

Members

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

Methods

The ID2D1Bitmap1 interface has these methods.

MethodDescription
GetColorContext

Gets the color context information associated with the bitmap.

GetOptions

Gets the options used in creating the bitmap.

GetSourceStream

Gets any image stream that is associated with the bitmap.

GetSurface

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

Map

Maps the given bitmap into memory.

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

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

DLL

D2d1.dll

See also

ID2D1Bitmap

 

 

Community Additions

ADD
Show:
© 2014 Microsoft