GlyphBoundsSink Class
Measures an outline: the smallest rectangle that contains its points and the control points of its curves.
public sealed class GlyphBoundsSink : OutlineSinkRemarks
A curve stays inside the polygon of its control points, so the rectangle contains the outline. It is the exact bounding box of an outline that has a point at each of its extrema, which is how fonts are drawn.
- Inheritance
OutlineSinkGlyphBoundsSink
Constructors
| Name | Description |
|---|---|
| GlyphBoundsSink() |
GlyphBoundsSink()
GlyphBoundsSink.cspublic GlyphBoundsSink()No documentation is available.
Properties
| Name | Description |
|---|---|
| IsEmpty | Gets a value indicating whether no point was received since GlyphBoundsSink.Reset. |
| MaxX | Gets the right of the rectangle. |
| MaxY | Gets the top of the rectangle. |
| MinX | Gets the left of the rectangle. |
| MinY | Gets the bottom of the rectangle. |
IsEmpty
GlyphBoundsSink.csGets a value indicating whether no point was received since GlyphBoundsSink.Reset.
public bool IsEmpty { get; }Property value
Methods
| Name | Description |
|---|---|
| Close() | Ends the contour, whose current point is its first point. |
| CubicTo(double, double, double, double, double, double) | Adds a cubic Bézier curve from the current point. |
| LineTo(double, double) | Adds a line from the current point. |
| MoveTo(double, double) | Starts a contour. |
| QuadraticTo(double, double, double, double) | Adds a quadratic Bézier curve from the current point. |
| Reset() | Forgets the points received, to measure another outline. |
Close()
GlyphBoundsSink.csEnds the contour, whose current point is its first point.
public override void Close()CubicTo(double, double, double, double, double, double)
GlyphBoundsSink.csLineTo(double, double)
GlyphBoundsSink.csMoveTo(double, double)
GlyphBoundsSink.csQuadraticTo(double, double, double, double)
GlyphBoundsSink.csReset()
GlyphBoundsSink.csForgets the points received, to measure another outline.
public void Reset()