[IoId("00000000-59bd-4d14-8bd4-7e0c9027e6be")] public sealed class Ink : IShape
Represents a single text element in a vector image.

Constructors

Ink

#
public Ink(IReader reader)
reader (IReader)

Properties

SvgPathCode

#
public string SvgPathCode { get; }
SvgPathCode

Methods

Draw

#
public void Draw(IconContext context, VectorStyle style)
context (IconContext)
style (VectorStyle)
Draw

Glue

#
public void Glue(IconContext context, GraphicsPath path)
context (IconContext)
path (GraphicsPath)
Glue

Make

#
public static Ink Make(string text, Dot point, Nem size, FontStyle style = FontStyle.Bold)
Make a new text element using the standard font.
text (string)Text to display.
point (Dot)Centre of text.
size (Nem)Size of text (as a factor of icon frame height).
style (FontStyle = FontStyle.Bold)Font style.

SizeRatio

#
public static SizeF SizeRatio(string text, FontStyle style = FontStyle.Bold)
Measure the size of some text drawn in the given font style.
text (string)
style (FontStyle = FontStyle.Bold)

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

TextToShape

#
public static IShape[] TextToShape(PointF location, string text)
Create a string of characters designed to be aligned to a small pixel grid. Use this to add crisp but small characters to icons. This method does not handle multi-line input.
location (PointF)Location (left edge of baseline).
text (string)Text to include. Only simple characters are available.
Shapes which make up the text.

Update

#
public void Update(string name, double value)
name (string)
value (double)
Update