[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.DeviceContext.Create

Create Method

Create(Surface)

Initializes a new instance of the DeviceContext class.

Declaration
public static DeviceContext Create(Surface surface)
Parameters
Type Name Description
Surface surface

The surface.

Returns
Type Description
DeviceContext

Create(Surface, CreationProperties)

Initializes a new instance of the Device class.

Declaration
public static DeviceContext Create(Surface surface, CreationProperties creationProperties)
Parameters
Type Name Description
Surface surface

The surface.

CreationProperties creationProperties

The creation properties.

Returns
Type Description
DeviceContext

Create(Device, DeviceContextOptions)

Initializes a new instance of the DeviceContext class using an existing Device.

Declaration
public static DeviceContext Create(Device device, DeviceContextOptions options)
Parameters
Type Name Description
Device device

The device.

DeviceContextOptions options

The options to be applied to the created device context.

Returns
Type Description
DeviceContext
Remarks

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.