ID2D1Ink::GetSegments method (d2d1_3.h)
Retrieves the specified subset of segments stored in this ink object.
Syntax
HRESULT GetSegments(
UINT32 startSegment,
[out] D2D1_INK_BEZIER_SEGMENT *segments,
UINT32 segmentsCount
);
Parameters
startSegment
Type: UINT32
The index of the first segment in this ink object to retrieve.
[out] segments
Type: D2D1_INK_BEZIER_SEGMENT*
When this method returns, contains a pointer to an array of retrieved segments.
segmentsCount
Type: UINT32
The number of segments to retrieve. 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 |