Click or drag to resize

PdfiumIntersectClipRect Method

The IntersectClipRect function creates a new clipping region from the intersection of the current clipping region and the specified rectangle.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static int IntersectClipRect(
	IntPtr hdc,
	int left,
	int top,
	int right,
	int bottom
)

Parameters

hdc  IntPtr
A handle to the device context.
left  Int32
The x-coordinate, in logical units, of the upper-left corner of the rectangle.
top  Int32
The y-coordinate, in logical units, of the upper-left corner of the rectangle.
right  Int32
The x-coordinate, in logical units, of the lower-right corner of the rectangle.
bottom  Int32
The y-coordinate, in logical units, of the lower-right corner of the rectangle.

Return Value

Int32
The return value specifies the new clipping region's type and can be one of the following values.
Remarks
The lower and right-most edges of the given rectangle are excluded from the clipping region. If a clipping region does not already exist then the system may apply a default clipping region to the specified HDC.A clipping region is then created from the intersection of that default clipping region and the rectangle specified in the function parameters.
See Also