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 Windows high-contrast accessibility option is currently selected. 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

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

See also

Complex ink sample

IInkD2DRenderer

Pen and stylus interactions

Samples

Complex Ink sample

Simple ink sample