clip method

[This documentation is preliminary and is subject to change.]

Specifies a new clipping region.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax

HRESULT retVal = object.clip();

Standards information

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The clip method creates a new clipping region by calculating the intersection of the current clipping region and the area that the current path describes, by using the non-zero winding number rule. The new clipping region replaces the current clipping region.

 

 

Build date: 1/23/2012