isPointInPath method
Determines if the specified point is in the current path.
Syntax
retVal = object.isPointInPath(x, y, fillRule);
Parameters
x [in]
Type: numberThe x-coordinate to test.
y [in]
Type: numberThe y-coordinate to test.
fillRule [in, optional]
Type: DOMStringSet to the evenodd fill rule.
Standards information
- HTML Canvas 2D Context, Section 9
Remarks
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.