ID2D1DeviceContext4::DrawColorBitmapGlyphRun method

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

Syntax


void DrawColorBitmapGlyphRun(
             DWRITE_GLYPH_IMAGE_FORMATS          glyphImageFormat,
             D2D1_POINT_2F                       baselineOrigin,
  [inconst DWRITE_GLYPH_RUN                    *glyphRun,
             DWRITE_MEASURING_MODE               measuringMode = DWRITE_MEASURING_MODE_NATURAL,
             D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION bitmapSnapOption = D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DEFAULT
);

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.

glyphRun [in]

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

This method does not return a value.

Requirements

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1DeviceContext4

 

 

Show: