ID2D1DeviceContext4::DrawColorBitmapGlyphRun method (d2d1_3.h)

Draws a color bitmap glyph run using one of the bitmap formats.

Syntax

void DrawColorBitmapGlyphRun(
       DWRITE_GLYPH_IMAGE_FORMATS          glyphImageFormat,
       D2D1_POINT_2F                       baselineOrigin,
  [in] const DWRITE_GLYPH_RUN              *glyphRun,
       DWRITE_MEASURING_MODE               measuringMode,
       D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION bitmapSnapOption
);

Parameters

glyphImageFormat

Type: DWRITE_GLYPH_IMAGE_FORMATS

Specifies the format of the glyph image. Supported formats are DWRITE_GLYPH_IMAGE_FORMATS_PNG, DWRITE_GLYPH_IMAGE_FORMATS_JPEG, DWRITE_GLYPH_IMAGE_FORMATS_TIFF, or DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8. 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

Type: D2D1_POINT_2F

The origin of the baseline for the glyph run.

[in] glyphRun

Type: const DWRITE_GLYPH_RUN*

The glyphs to render.

measuringMode

Type: DWRITE_MEASURING_MODE

Indicates the measuring method.

bitmapSnapOption

Type: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION

Specifies the pixel snapping policy when rendering color bitmap glyphs.

Return value

None

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext4