ID2D1DeviceContext2::CreateInk method

Creates a new ID2D1Ink object that starts at the given point.

Syntax


HRESULT CreateInk(
        const D2D1_INK_POINT *startPoint,
  [out]       ID2D1Ink       **ink
);

Parameters

startPoint

Type: const D2D1_INK_POINT*

The starting point of the first segment of the first stroke in the new ink object.

ink [out]

Type: ID2D1Ink**

When this method returns, contains the address of a pointer to a new ink object.

Return value

Type: HRESULT

S_OK if successful, otherwise a failure HRESULT.

Requirements

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | UWP apps]

Minimum supported phone

Windows 10 Mobile

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1DeviceContext2

 

 

Show: