ID2D1DeviceContext4 interface

This interface performs all the same functions as the ID2D1DeviceContext3 interface, plus it enables functionality for handling new types of color font glyphs.

Members

The ID2D1DeviceContext4 interface inherits from ID2D1DeviceContext3. ID2D1DeviceContext4 also has these types of members:

Methods

The ID2D1DeviceContext4 interface has these methods.

MethodDescription
CreateSvgGlyphStyle

Creates an SVG glyph style object.

DrawColorBitmapGlyphRun

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

DrawSvgGlyphRun

Draws a color glyph run that has the format of DWRITE_GLYPH_IMAGE_FORMATS_SVG.

DrawText Overloaded.

Draws the text within the given layout rectangle.

DrawTextLayout

Draws a text layout object. If the layout is not subsequently changed, this can be more efficient than DrawText when drawing the same layout repeatedly.

GetColorBitmapGlyphImage

Retrieves an image of the color bitmap glyph from the color glyph cache. If the cache does not already contain the requested resource, it will be created. This method may be used to extend the lifetime of a glyph image even after it is evicted from the color glyph cache.

GetSvgGlyphImage

Retrieves an image of the SVG glyph from the color glyph cache. If the cache does not already contain the requested resource, it will be created. This method may be used to extend the lifetime of a glyph image even after it is evicted from the color glyph cache.

 

Requirements

Header

D2d1_3.h

DLL

D2d1.dll

 

 

Show: