IInkD2DRenderer2::Draw method (inkrenderer.h)

Renders the ink stroke to the designated Direct2D device context of the app.

Syntax

HRESULT Draw(
  [in] IUnknown                     *pD2D1DeviceContext,
  [in] IUnknown                     *pInkStrokeIterable,
       INK_HIGH_CONTRAST_ADJUSTMENT highContrastAdjustment
);

Parameters

[in] pD2D1DeviceContext

Pointer to the designated Direct2D device context of the app.

[in] pInkStrokeIterable

Pointer to the collection of ink strokes to render.

highContrastAdjustment

One of the values from the INK_HIGH_CONTRAST_ADJUSTMENT enum.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 11 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header inkrenderer.h

See also

Complex ink sample Simple ink sample Ink renderer interfaces Pen and stylus interactions