Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IPathMeasure

interface IPathMeasure
Extends com.amazon.apmf.IStandard The IPathMeasure interface provides utilities to measure a path constructed via IPathBuilder. The path being measured is fixed at construction time (see IGraphicsModule5::makePathMeasure); to measure a different path, create a new IPathMeasure instance.

Methods

getLength()

float getLength()
Returns the total length of the current contour, or 0 if there is no current contour (e.g. the path is empty, or all contours have been iterated past).

Returns

float the length of the current contour.

nextContour()

bool nextContour()
Moves to the next contour in the path.

Returns

bool true if a next contour exists; false if there are no more contours to iterate.
Last modified on October 29, 2026