IInkD2DRenderer::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,
  [in] BOOL     fHighContrast
);

Parameters

[in] pD2D1DeviceContext

Pointer to the designated Direct2D device context of the app.

[in] pInkStrokeIterable

Pointer to the collection of ink strokes to render.

[in] fHighContrast

True, if the high-contrast accessibility option, in Windows 10 and earlier, is currently selected (Settings -> Ease of Access -> High Contrast -> Use high contrast). Otherwise, false.

Listen for the HighContrastChanged event to set this value appropriately.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 10 [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