The direct2d geometry constructor: converts the gdi+ style drawing primitive into a ID2D1Geometry object so that it can be rasterized by the gpu device.
DxPathBuilder
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| AddLines | 1 | append the polygon vertex buffer into the geometry sink, the vertex buffer is pinned during the call so that no extra copy is required. |
| AddTail | 1 | AddLines of the polygon, the first point is consumed by the BeginFigure call so that only the remaining points are appended here. |
| Polygon | 1 | build a polygon (or a polyline when closed is false) |
| Bezier | 1 | build a cubic bezier spline |
| Beziers | 1 | build a bezier spline sequence from a point array of 3n+1 points |
| GetArc | 1 | compute the arc segment of a gdi+ style arc: the angle unit is degree and the positive sweep angle goes clockwise on the screen. |
| Arc | 1 | build an open arc |
| Pie | 1 | build a pie shape: the center point, the arc and the closed outline |
| AddEllipseFigure | 1 | build an ellipse figure through two half arc segments |
| AddRectangleFigure | 1 | build a rectangle figure |
| CardinalSegments | 1 | convert the cardinal spline control points into a cubic bezier segment sequence |
| Curve | 1 | build a cardinal spline curve |
| FromGraphicsPath | 1 | replay the drawing operation sequence of a GraphicsPath object into a direct2d path geometry. |
03 Members
ID2D1GeometrySink, D2D1_POINT_2F(), Int32)append the polygon vertex buffer into the geometry sink, the vertex buffer is pinned during the call so that no extra copy is required.
| Name | Type | Description |
|---|---|---|
offset | ID2D1GeometrySink | the index of the first vertex that should be appended, the vertex before the offset is consumed by the BeginFigure call |
ID2D1GeometrySink, D2D1_POINT_2F())AddLines of the polygon, the first point is consumed by the BeginFigure call so that only the remaining points are appended here.
ID2D1Factory, D2D1_POINT_2F(), Boolean)build a polygon (or a polyline when closed is false)
ID2D1Factory, D2D1_POINT_2F, D2D1_POINT_2F, D2D1_POINT_2F, D2D1_POINT_2F)build a cubic bezier spline
ID2D1Factory, D2D1_POINT_2F())build a bezier spline sequence from a point array of 3n+1 points
RectangleF, Single, Single, D2D1_POINT_2F, D2D1_ARC_SEGMENT)compute the arc segment of a gdi+ style arc: the angle unit is degree and the positive sweep angle goes clockwise on the screen.
ID2D1Factory, RectangleF, Single, Single)build an open arc
ID2D1Factory, RectangleF, Single, Single)build a pie shape: the center point, the arc and the closed outline
ID2D1GeometrySink, RectangleF)build an ellipse figure through two half arc segments
ID2D1GeometrySink, RectangleF)build a rectangle figure
D2D1_POINT_2F(), Single, Boolean)convert the cardinal spline control points into a cubic bezier segment sequence
ID2D1Factory, D2D1_POINT_2F(), Single, Boolean)build a cardinal spline curve
ID2D1Factory, GraphicsPath)replay the drawing operation sequence of a GraphicsPath object into a direct2d path geometry.