Setting a clipping Region

PaulStat

New member
Joined
Aug 25, 2003
Messages
1
Im trying to use the SetClip method of the Graphics object, Like so

Code:
public void ClipDCToRect(Region r)
{
                ClippingRegion.Complement(r);
	gfx.SetClip(ClippingRegion);
	RegionValid = true;
}

But I keep getting the following error

\CSurface.cs(53): Argument 1: cannot convert from System.Drawing.Region to System.Drawing.Graphics

Any ideas??
 
Only Graphics objects or Rectangle is accepted alone in the overloads, only the last overload accepts a Region but also another argument, CombineMode.
 
Back
Top