Class GlyphBoundingBox
Axis-aligned bounding box of a glyph outline, in design units.
Inherited Members
Namespace: DRIT.Drawing.Font.Glyphs
Assembly: DRIT.Drawing.dll
Syntax
public sealed class GlyphBoundingBox
Constructors
GlyphBoundingBox(double, double, double, double)
Initializes a new GlyphBoundingBox with the specified coordinates.
Declaration
public GlyphBoundingBox(double xMin, double yMin, double xMax, double yMax)
Parameters
| Type | Name | Description |
|---|---|---|
| double | xMin | Leftmost x-coordinate of the glyph outline. |
| double | yMin | Bottommost y-coordinate of the glyph outline. |
| double | xMax | Rightmost x-coordinate of the glyph outline. |
| double | yMax | Topmost y-coordinate of the glyph outline. |
Fields
Empty
An empty bounding box with zero dimensions.
Declaration
public static readonly GlyphBoundingBox Empty
Field Value
| Type | Description |
|---|---|
| GlyphBoundingBox |
Properties
Height
Height of the bounding box (YMax − YMin).
Declaration
public double Height { get; }
Property Value
| Type | Description |
|---|---|
| double |
Width
Width of the bounding box (XMax − XMin).
Declaration
public double Width { get; }
Property Value
| Type | Description |
|---|---|
| double |
XMax
Rightmost x-coordinate of the glyph outline.
Declaration
public double XMax { get; }
Property Value
| Type | Description |
|---|---|
| double |
XMin
Leftmost x-coordinate of the glyph outline.
Declaration
public double XMin { get; }
Property Value
| Type | Description |
|---|---|
| double |
YMax
Topmost y-coordinate of the glyph outline.
Declaration
public double YMax { get; }
Property Value
| Type | Description |
|---|---|
| double |
YMin
Bottommost y-coordinate of the glyph outline.
Declaration
public double YMin { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
ToString()
Returns a string representation of this bounding box.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |