SetClippingPath

Vector graphics, Path definition and drawing

Description

Uses the current path as a clipping path for subsequent drawing operations.

The current path is combined with the existing clipping path, this means that the clipping area can only be made smaller.

To restore the clipping path, call SaveState before calling this function and then LoadState to restore the clipping path to its previous state.

Syntax

Delphi

Function TPDFlib.SetClippingPath: Integer;

ActiveX

Function PDFlib::SetClippingPath() As Long

DLL

int DLSetClippingPath(int InstanceID);

Return values

Returns 1 when the current path became the clipping path and the path was ended. Returns 0 when no path has been started on the current page.