Class GeometryRealization
Encapsulates a device- and transform-dependent representation of a filled or stroked geometry. Callers should consider creating a geometry realization when they wish to accelerate repeated rendering of a given geometry. This interface exposes no methods.
[Guid("a16907d7-bc02-4801-99e8-8cf7f485f774")]
public class GeometryRealization : Resource
- Inheritance
-
GeometryRealization
- Inherited Members
Constructors
GeometryRealization(DeviceContext1, Geometry, float)
Creates a device-dependent representation of the fill of the geometry that can be subsequently rendered.
public GeometryRealization(DeviceContext1 context, Geometry geometry, float flatteningTolerance)
Parameters
context
DeviceContext1The device context where the created instance should be attached to.
geometry
GeometryThe geometry to realize.
flatteningTolerance
floatThe flattening tolerance to use when converting Beziers to line segments. This parameter shares the same units as the coordinates of the geometry.
Remarks
This method is used in conjunction with DrawGeometryRealization(GeometryRealization, Brush). The D2D1::ComputeFlatteningTolerance helper API may be used to determine the proper flattening tolerance.
If the provided stroke style specifies a stroke transform type other than Normal, then the stroke will be realized assuming the identity transform and a DPI of 96.
GeometryRealization(DeviceContext1, Geometry, float, float, StrokeStyle)
Creates a device-dependent representation of the stroke of a geometry that can be subsequently rendered.
public GeometryRealization(DeviceContext1 context, Geometry geometry, float flatteningTolerance, float strokeWidth, StrokeStyle strokeStyle)
Parameters
context
DeviceContext1The device context where the created instance should be attached to.
geometry
GeometryThe geometry to realize.
flatteningTolerance
floatThe flattening tolerance to use when converting Beziers to line segments. This parameter shares the same units as the coordinates of the geometry.
strokeWidth
floatThe width of the stroke. This parameter shares the same units as the coordinates of the geometry.
strokeStyle
StrokeStyleThe stroke style (optional).
Remarks
This method is used in conjunction with DrawGeometryRealization(GeometryRealization, Brush). The D2D1::ComputeFlatteningTolerance helper API may be used to determine the proper flattening tolerance.
If the provided stroke style specifies a stroke transform type other than Normal, then the stroke will be realized assuming the identity transform and a DPI of 96.
GeometryRealization(nint)
public GeometryRealization(nint nativePtr)
Parameters
nativePtr
nint
Operators
explicit operator GeometryRealization(nint)
public static explicit operator GeometryRealization(nint nativePtr)
Parameters
nativePtr
nint