Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

isPointInPath method

Determines if the specified point is in the current path.

HTML Canvas 2D Context, Section 9Internet Explorer 9


 retVal = object.isPointInPath(x, y, fillRule);


x [in]

Type: number

The x-coordinate to test.

y [in]

Type: number

The y-coordinate to test.

fillRule [in, optional]

Type: DOMString

Set to the evenodd fill rule.

Standards information


Starting with Internet Explorer 11 this method uses the non-zero winding number rule or the even-odd rule, based on the setting of the optional fillRule parameter. Earlier versions offer only the default non-zero winding number rule.

See also




Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.