ID2D1DeviceContext::GetDevice method
Gets the device associated with a device context.
Syntax
void GetDevice(
[out] ID2D1Device **device
);
Parameters
- device [out]
-
Type: ID2D1Device**
When this method returns, contains the address of a pointer to a Direct2D device associated with this device context.
Return value
This method does not return a value.
Remarks
The application can retrieve the device even if it is created from an earlier render target code-path. The application must use an ID2D1DeviceContext interface and then call GetDevice. Some functionality for controlling all of the resources for a set of device contexts is maintained only on an ID2D1Device object.
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 |
|
|
DLL |
|
See also