[]
Creates a graphics holder from a device context. When the holder is disposed, both graphics and the device context are released (DeleteDC is called on the device context).
public static GraphicsHolder FromDC(IntPtr dc)
Public Shared Function FromDC(dc As IntPtr) As GraphicsHolder
| Type | Name | Description |
|---|---|---|
| IntPtr | dc | The device context from which graphics is created. |
| Type | Description |
|---|---|
| GraphicsHolder | The new instance of the graphics holder. |