Condividi tramite


Metodo ID2D1DeviceContext::CreateCommandList (d2d1_1.h)

Crea un oggetto ID2D1CommandList .

Sintassi

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

Parametri

[out] commandList

Tipo: ID2D1CommandList**

Quando questo metodo restituisce, contiene l'indirizzo di un puntatore a un elenco di comandi.

Valore restituito

Tipo: HRESULT

Il metodo restituisce un HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

HRESULT Descrizione
S_OK Non si sono verificati errori.
E_OUTOFMEMORY Direct2D non è riuscito a allocare memoria sufficiente per completare la chiamata.

Commenti

Un ID2D1CommandList può archiviare i comandi Direct2D da visualizzare in un secondo momento tramite ID2D1DeviceContext::D rawImage o tramite un pennello di immagine.

Requisiti

Requisito Valore
Client minimo supportato Windows 8 e Aggiornamento della piattaforma per Windows 7 [app desktop | App UWP]
Server minimo supportato Windows Server 2012 e Aggiornamento della piattaforma per Windows Server 2008 R2 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione d2d1_1.h
DLL D2d1.dll

Vedi anche

ID2D1CommandList

ID2D1DeviceContext