Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 | UWP apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP 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

 

 

Show:
© 2017 Microsoft