ID2D1Ink::SetSegments method

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

Syntax


HRESULT SetSegments(
             UINT32                  startSegment,
  [inconst D2D1_INK_BEZIER_SEGMENT *segments,
             UINT32                  segmentsCount
);

Parameters

startSegment

Type: UINT32

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

segments [in]

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

Header

D2d1_3.h

Library

D2d1_3.lib

DLL

D2d1_3.dll

See also

ID2D1Ink

 

 

Show: