Expand Minimize

D2D1_BITMAP_PROPERTIES1 structure

This structure allows a ID2D1Bitmap1 to be created with bitmap options and color context information available.

Syntax


typedef struct D2D1_BITMAP_PROPERTIES1 {
  D2D1_PIXEL_FORMAT   pixelFormat;
  FLOAT               dpiX;
  FLOAT               dpiY;
  D2D1_BITMAP_OPTIONS bitmapOptions;
  ID2D1ColorContext   *colorContext;
} D2D1_BITMAP_PROPERTIES1, *PD2D1_BITMAP_PROPERTIES1;

Members

pixelFormat

Type: D2D1_PIXEL_FORMAT

The DXGI format and alpha mode to create the bitmap with.

dpiX

Type: FLOAT

The bitmap dpi in the x direction.

dpiY

Type: FLOAT

The bitmap dpi in the y direction.

bitmapOptions

Type: D2D1_BITMAP_OPTIONS

The special creation options of the bitmap.

colorContext

Type: ID2D1ColorContext*

The optionally specified color context information.

Remarks

If both dpiX and dpiY are 0, the dpi of the bitmap will be set to the desktop dpi if the device context is a windowed context, or 96 dpi for any other device context.

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

Type library

D2D1.lib

See also

ID2D1DeviceContext::CreateBitmap

 

 

Community Additions

ADD
Show:
© 2014 Microsoft