Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a ID2D1CommandList object.
Syntax
HRESULT CreateCommandList(
  [out] ID2D1CommandList **commandList
);
Parameters
[out] commandList
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.
| HRESULT | Description | 
|---|---|
| S_OK | No error occurred. | 
| E_OUTOFMEMORY | Direct2D 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
| Requirement | Value | 
|---|---|
| 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] | 
| Target Platform | Windows | 
| Header | d2d1_1.h | 
| DLL | D2d1.dll |