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

fill method

Fills subpaths by using the current fill style.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax


object.fill(fillRule);

Parameters

fillRule [in, optional]

Type: DOMString

Set to evenodd to use the even-odd fill rule. If missing, uses non-zero winding rule.

Return value

This method does not return a value.

Standards information

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.

See also

ICanvasRenderingContext2D::closePath
ICanvasRenderingContext2D::beginPath
ICanvasRenderingContext2D::lineTo
msFillRule

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.