ID2D1Device2::CreateDeviceContext method
Creates a new ID2D1DeviceContext2 from a Direct2D device.
Syntax
HRESULT CreateDeviceContext( D2D1_DEVICE_CONTEXT_OPTIONS options, [out] ID2D1DeviceContext2 **deviceContext2 );
Parameters
- options
-
Type: D2D1_DEVICE_CONTEXT_OPTIONS
The options to be applied to the created device context.
- deviceContext2 [out]
-
Type: ID2D1DeviceContext2**
When this method returns, contains the address of a pointer to the new device context.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also
Show: