[DllImport("gdi32.dll")]
static extern int SelectClipRgn(IntPtr hdc, IntPtr hrgn);
None.
None.
Please add some!
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);
Do you know one? Please contribute it!