IInkD2DRenderer::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 this 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 407fb1de-f85a-4150-97cf-b7fb274fb4f8

See also

IInkD2DRenderer
Pen and stylus interactions
Samples
Ink sample
Simple ink sample
Complex ink sample

 

 

Show: