[]
Draws a run of glyphs to a bitmap target at the specified position.
public void DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, RenderingParams renderingParams, int textColor)
Type | Name | Description |
---|---|---|
float | baselineOriginX | The horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. |
float | baselineOriginY | The vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. |
MeasuringMode | measuringMode | The measuring method for glyphs in the run, used with the other properties to determine the rendering mode. |
GlyphRun | glyphRun | The structure containing the properties of the glyph run. |
RenderingParams | renderingParams | The object that controls rendering behavior. |
int | textColor | The foreground color of the text. |
HRESULT IDWriteBitmapRenderTarget::DrawGlyphRun([In] float baselineOriginX,[In] float baselineOriginY,[In] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] IDWriteRenderingParams* renderingParams,[In] COLORREF textColor,[Out, Optional] RECT* blackBoxRect)
public void DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, RenderingParams renderingParams, int textColor, out RectL blackBoxRect)
Type | Name | Description |
---|---|---|
float | baselineOriginX | |
float | baselineOriginY | |
MeasuringMode | measuringMode | |
GlyphRun | glyphRun | |
RenderingParams | renderingParams | |
int | textColor | |
RectL | blackBoxRect |