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
glyphImageFormatsGlyphImageFormatsSpecifies 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.
baselineOriginPoint2FloatThe origin of the baseline for the glyph run.
glyphRunGlyphRunThe glyphs to render.
measuringModeTextMeasuringModeIndicates the measuring method.
bitmapSnapOptionColorBitmapGlyphSnapOptionSpecifies the pixel snapping policy when rendering color bitmap glyphs.