 | PdfiumIntersectClipRect Method |
The IntersectClipRect function creates a new clipping region from the intersection of the current clipping region and the specified rectangle.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static int IntersectClipRect(
IntPtr hdc,
int left,
int top,
int right,
int bottom
)
Public Shared Function IntersectClipRect (
hdc As IntPtr,
left As Integer,
top As Integer,
right As Integer,
bottom As Integer
) As Integer
public:
static int IntersectClipRect(
IntPtr hdc,
int left,
int top,
int right,
int bottom
)
static member IntersectClipRect :
hdc : IntPtr *
left : int *
top : int *
right : int *
bottom : int -> int
public static int IntersectClipRect(
IntPtr hdc,
int left,
int top,
int right,
int bottom
)
Patagames.Pdf.Pdfium.IntersectClipRect = function(hdc, left, top, right, 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
Int32The return value specifies the new clipping region's type and can be one of the following values.
RemarksThe 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