Share via


InkD2DRenderer.Draw method

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

  • pD2D1DeviceContext [in]
    Pointer to the designated Direct2D device context of the app.

  • pInkStrokeIterable [in]
    Pointer to the collection of ink strokes to render.

  • fHighContrast [in]
    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 the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 10

Minimum supported server

None supported

Header

Inkrenderer.h

IDL

Inkrenderer.idl

IID

IID_IInkD2DRenderer is defined as 4044e60c-7b01-4671-a97c-04e0210a07a5

See also

InkD2DRenderer

Pen and stylus interactions

Samples

Ink sample

Simple ink sample

Complex ink sample