[]
ID2D1DeviceContext1
[Guid("d37f57e4-6908-459f-a199-e72f24f79987")]
public class DeviceContext1 : DeviceContext, IDisposable, IUnknown
Initializes a new instance of the DeviceContext1 class.
public DeviceContext1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Initializes a new instance of the DeviceContext1 class using an existing Device1.
public static DeviceContext1 Create(Device1 device, DeviceContextOptions options)
device
Device1The device.
options
DeviceContextOptionsThe options to be applied to the created device context.
HRESULT ID2D1DeviceContext1::CreateFilledGeometryRealization([In] ID2D1Geometry* geometry,[In] float flatteningTolerance,[Out] ID2D1GeometryRealization** geometryRealization)
public GeometryRealization CreateFilledGeometryRealization(Geometry geometry, float flatteningTolerance)
geometry
GeometryflatteningTolerance
floatHRESULT 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)
geometry
GeometryflatteningTolerance
floatstrokeWidth
floatstrokeStyle
StrokeStylevoid ID2D1DeviceContext1::DrawGeometryRealization([In] ID2D1GeometryRealization* geometryRealization,[In] ID2D1Brush* brush)
public void DrawGeometryRealization(GeometryRealization geometryRealization, Brush brush)
geometryRealization
GeometryRealizationbrush
BrushPerforms an explicit conversion from System.IntPtr to DeviceContext1.
public static explicit operator DeviceContext1(IntPtr nativePointer)
nativePointer
System.IntPtr