ID2D1Ink::SetSegmentAtEnd(constD2D1_INK_BEZIER_SEGMENT*) method (d2d1_3.h)

Updates the last segment in this ink object with new control points.

Syntax

HRESULT SetSegmentAtEnd(
  [in] const D2D1_INK_BEZIER_SEGMENT *segment
);

Parameters

[in] segment

Type: const D2D1_INK_BEZIER_SEGMENT*

A pointer to the segment data with which to overwrite this ink object's last segment. Note that if there are currently no segments in the ink object, SetSegmentsAtEnd will return an error.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
Library D2d1_3.lib
DLL D2d1_3.dll

See also

ID2D1Ink