ID2D1Device interface

Represents a resource domain whose objects and device contexts can be used together.

When to implement

Custom implementations are not supported.

Members

The ID2D1Device interface inherits from ID2D1Resource. ID2D1Device also has these types of members:

Methods

The ID2D1Device interface has these methods.

MethodDescription
ClearResources

Clears all of the rendering resources used by Direct2D.

CreateDeviceContext

Creates a new device context from a Direct2D device.

CreatePrintControl Overloaded.

Creates an ID2D1PrintControl object that converts Direct2D primitives stored in ID2D1CommandList into a fixed page representation. The print sub-system then consumes the primitives.

GetMaximumTextureMemory

Sets the maximum amount of texture memory Direct2D accumulates before it purges the image caches and cached texture allocations.

SetMaximumTextureMemory

Sets the maximum amount of texture memory Direct2D accumulates before it purges the image caches and cached texture allocations.

 

Remarks

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

Library

D2d1.lib

DLL

D2d1.dll

See also

D2D1CreateDevice
ID2D1Factory1::CreateDevice

 

 

Community Additions

ADD
Show:
© 2014 Microsoft