[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.DeviceContext1

Class DeviceContext1

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1DeviceContext1

[Guid("d37f57e4-6908-459f-a199-e72f24f79987")]
public class DeviceContext1 : DeviceContext, IDisposable, IUnknown
Inheritance
object
DeviceContext1
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DeviceContext1(IntPtr)

Initializes a new instance of the DeviceContext1 class.

public DeviceContext1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(Device1, DeviceContextOptions)

Initializes a new instance of the DeviceContext1 class using an existing Device1.

public static DeviceContext1 Create(Device1 device, DeviceContextOptions options)

Parameters

device Device1

The device.

options DeviceContextOptions

The options to be applied to the created device context.

Returns

DeviceContext1

CreateFilledGeometryRealization(Geometry, float)

HRESULT ID2D1DeviceContext1::CreateFilledGeometryRealization([In] ID2D1Geometry* geometry,[In] float flatteningTolerance,[Out] ID2D1GeometryRealization** geometryRealization)

public GeometryRealization CreateFilledGeometryRealization(Geometry geometry, float flatteningTolerance)

Parameters

geometry Geometry
flatteningTolerance float

Returns

GeometryRealization

CreateStrokedGeometryRealization(Geometry, float, float, StrokeStyle)

HRESULT ID2D1DeviceContext1::CreateStrokedGeometryRealization([In] ID2D1Geometry* geometry,[In] float flatteningTolerance,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[Out] ID2D1GeometryRealization** geometryRealization)

public GeometryRealization CreateStrokedGeometryRealization(Geometry geometry, float flatteningTolerance, float strokeWidth, StrokeStyle strokeStyle)

Parameters

geometry Geometry
flatteningTolerance float
strokeWidth float
strokeStyle StrokeStyle

Returns

GeometryRealization

DrawGeometryRealization(GeometryRealization, Brush)

void ID2D1DeviceContext1::DrawGeometryRealization([In] ID2D1GeometryRealization* geometryRealization,[In] ID2D1Brush* brush)

public void DrawGeometryRealization(GeometryRealization geometryRealization, Brush brush)

Parameters

geometryRealization GeometryRealization
brush Brush

Operators

explicit operator DeviceContext1(IntPtr)

Performs an explicit conversion from System.IntPtr to DeviceContext1.

public static explicit operator DeviceContext1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

DeviceContext1