PixelTextExtensionMethods

public static class PixelTextExtensionMethods
Provides extension methods for the Eto graphics object.

Methods

DrawPixelChar

#Example
Draw a single pixel character.
public static void DrawPixelChar(
this Graphics
graphics,
Graphics object to draw with.
c,
Char to draw.
Pen
edge,
Pen to use. Should ideally have a width of 2 logical pixels and round caps/joins.
x,
X of left edge of character.
y
Y of base line elevation.
)

DrawPixelDigit

#Example
public static void DrawPixelDigit(
this Graphics
graphics,
c,
Pen
edge,
x,
y
)

DrawPixelSymbol

#Example
public static void DrawPixelSymbol(
this Graphics
graphics,
c,
Pen
edge,
x,
y
)

DrawPixelText

#Example
Draw a pixel string.
public static void DrawPixelText(
this Graphics
graphics,
text,
Color
colour,
PointF
anchor
)

MeasurePixelText

#Example
Measure the width and height of a pixel string.
public static SizeF MeasurePixelText(
this Graphics
graphics,
text
)

PixelCharHeight

#
Gets the height of the bounding box of a char. Note that at this moment this function always returns 12, regardless of the char. Maybe one day I'll add a descender and ascender method, but today is not that day.
public static float PixelCharHeight()

PixelCharWidth

#
Gets the width of the bounding box of a char.
public static float PixelCharWidth()

PixelStringWidth

#
Measure the width of a string. This includes all known characters, spacing and kerning.
public static float PixelStringWidth(
text
)