ID2D1DeviceContext::CreateCommandList method

Creates a ID2D1CommandList object.

Syntax


HRESULT CreateCommandList(
  [out]  ID2D1CommandList **commandList
) const;

Parameters

commandList [out]

Type: ID2D1CommandList**

When this method returns, contains the address of a pointer to a command list.

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULTDescription
S_OKNo error occurred.
E_OUTOFMEMORYDirect2D could not allocate sufficient memory to complete the call.

 

Remarks

A ID2D1CommandList can store Direct2D commands to be displayed later through ID2D1DeviceContext::DrawImage or through an image brush.

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

ID2D1DeviceContext
ID2D1CommandList

 

 

Community Additions

ADD
Show:
© 2014 Microsoft