[]
Initializes a new instance of the DeviceContext class.
public static DeviceContext Create(Surface surface)
| Type | Name | Description |
|---|---|---|
| Surface | surface | The surface. |
| Type | Description |
|---|---|
| DeviceContext |
Initializes a new instance of the Device class.
public static DeviceContext Create(Surface surface, CreationProperties creationProperties)
| Type | Name | Description |
|---|---|---|
| Surface | surface | The surface. |
| CreationProperties | creationProperties | The creation properties. |
| Type | Description |
|---|---|
| DeviceContext |
Initializes a new instance of the DeviceContext class using an existing Device.
public static DeviceContext Create(Device device, DeviceContextOptions options)
| Type | Name | Description |
|---|---|---|
| Device | device | The device. |
| DeviceContextOptions | options | The options to be applied to the created device context. |
| Type | Description |
|---|---|
| DeviceContext |
The new device context will not have a selected target bitmap. The caller must create and select a bitmap as the target surface of the context.