Method DrawColorBitmapGlyphRun
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
DrawColorBitmapGlyphRun(GlyphImageFormats, Point2Float, in GlyphRun, TextMeasuringMode, ColorBitmapGlyphSnapOption)
Draws a color bitmap glyph run using one of the bitmap formats.
void DrawColorBitmapGlyphRun(GlyphImageFormats glyphImageFormats, Point2Float baselineOrigin, in GlyphRun glyphRun, TextMeasuringMode measuringMode = TextMeasuringMode.Natural, ColorBitmapGlyphSnapOption bitmapSnapOption = ColorBitmapGlyphSnapOption.Default)
Parameters
glyphImageFormats
GlyphImageFormatsSpecifies the format of the glyph image. The supported formats are Png, Jpeg, Tiff, or PremultipliedBgra32. This method will result in an error if the color glyph run does not contain the requested format. Only one format can be specified at a time, combinations of flags are not valid input.
baselineOrigin
Point2FloatThe origin of the baseline for the glyph run.
glyphRun
GlyphRunThe glyphs to render.
measuringMode
TextMeasuringModeIndicates the measuring method.
bitmapSnapOption
ColorBitmapGlyphSnapOptionSpecifies the pixel snapping policy when rendering color bitmap glyphs.