ID2D1DeviceContext2::CreateInkStyle(constD2D1_INK_STYLE_PROPERTIES*,ID2D1InkStyle**) method (d2d1_3.h)

Creates a new ID2D1InkStyle object, for use with ink rendering methods such as DrawInk.

Syntax

HRESULT CreateInkStyle(
  [ref] const D2D1_INK_STYLE_PROPERTIES *inkStyleProperties,
  [out] ID2D1InkStyle                   **inkStyle
);

Parameters

[ref] inkStyleProperties

Type: const D2D1_INK_STYLE_PROPERTIES

The properties of the ink style to be created.

[out] inkStyle

Type: ID2D1InkStyle**

When this method returns, contains the address of a pointer to a new ink style 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]
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext2