Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ID2D1Device::ClearResources method

Clears all of the rendering resources used by Direct2D.

Syntax


HRESULT ClearResources(
   UINT millisecondsSinceUse = 0
);

Parameters

millisecondsSinceUse

Type: UINT

Discards only resources that haven't been used for greater than the specified time in milliseconds. The default is 0 milliseconds.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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

ID2D1Device

 

 

Community Additions

ADD
Show:
© 2015 Microsoft