ID2D1Ink::SetSegments method (d2d1_3.h)

Updates the specified segments in this ink object with new control points.

Syntax

HRESULT SetSegments(
       UINT32                        startSegment,
  [in] const D2D1_INK_BEZIER_SEGMENT *segments,
       UINT32                        segmentsCount
);

Parameters

startSegment

Type: UINT32

The index of the first segment in this ink object to update.

[in] segments

Type: const D2D1_INK_BEZIER_SEGMENT*

A pointer to the array of segment data to be used in the update.

segmentsCount

Type: UINT32

The number of segments in this ink object that will be updated with new data. Note that segmentsCount must be less than or equal to the number of segments in the ink object minus startSegment.

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