SelectClipRgn (gdi32)
Last changed: -213.248.109.131

.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern int SelectClipRgn(IntPtr hdc, IntPtr hrgn);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

IntPtr hdc = graphics.GetHdc();
IntPtr hRegion = CreateRectRgn(left, top, right, bottom);
SelectClipRgn(hdc, hRegion); // region will be copied
DeleteObject(hRegion);
// ...
SelectClipRgn(hdc, IntPtr.Zero); // reset clip region
graphics.ReleaseHdc(hdc);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation