XamlGlyph Class
Defines the glyph built using XAML path data.
public class XamlGlyph : Glyph
Remarks
For internal use only.
Constructors
XamlGlyph(Size)
Initializes a new instance of the Glyph class.
public XamlGlyph(Size canvasSize)
Parameter | Type | Description |
---|---|---|
canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
XamlGlyph(Size, XamlPath)
Initializes a new instance of the Glyph class.
public XamlGlyph(Size canvasSize, XamlGlyph.XamlPath path)
Parameter | Type | Description |
---|---|---|
canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
path | XamlGlyph.XamlPath | The XAML path data to be included. |
XamlGlyph(Size, params XamlPath[])
Initializes a new instance of the Glyph class.
public XamlGlyph(Size canvasSize, params XamlGlyph.XamlPath[] paths)
Parameter | Type | Description |
---|---|---|
canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
paths | XamlPath[] | The XAML path data to be included. |
XamlGlyph(Size, string)
Initializes a new instance of the Glyph class.
public XamlGlyph(Size canvasSize, string path)
Parameter | Type | Description |
---|---|---|
canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
path | string | The XAML path data to be included with the default stroke thickness and color. |
Properties
CanvasSize
Gets or sets the size of the canvas where individual paths of the glyph are positioned.
Paths
Gets the list of paths which are used to render the glyph.
Methods
DrawCore(Graphics, Point, Color, SizeF)
Performs the core painting of the glyph at the given location.
protected override sealed void DrawCore(Graphics g, Point location, Color color, SizeF scaleFactor)
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
location | Point | The location of the top-left corner of the glyph. |
color | Color | The color used to paint. |
scaleFactor | SizeF | The scale factor to apply when painting (e.g. |
GetUnscaledSize(SizeF)
Gets the original size of the glyph before scaling to the given scale factor.
protected override sealed Size GetUnscaledSize(SizeF scaleFactor)
Parameter | Type | Description |
---|---|---|
scaleFactor | SizeF | The scale factor to apply when painting (e.g. |
Returns
- Size:
The size of the the glyph after it is scaled.
Inherited Members
- Glyph.Draw(Graphics, Point, Color, SizeF)
- Glyph.Draw(Graphics, Rectangle, Color, SizeF)
- Glyph.DrawRectangle(Graphics, Point, Rectangle, Color?, Color?, SizeF)
- Glyph.DrawRectangle(Graphics, Point, RectangleF, Color?, Color?, SizeF)
- Glyph.DrawPolygon(Graphics, Point, PointF[], Color?, Color?, SizeF)
- Glyph.DrawPolygon(Graphics, Point, PointF[], Color?, Color?, SizeF, PenAlignment)
- Glyph.GetScaledSize(SizeF)
- Glyph.IsHighDpi(SizeF)
- Glyph.ShouldUseAntiAlias(SizeF)
- Glyph.TransformAndScalePoints(Point, PointF[], SizeF)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()