Im trying to use the SetClip method of the Graphics object, Like so
But I keep getting the following error
\CSurface.cs(53): Argument 1: cannot convert from System.Drawing.Region to System.Drawing.Graphics
Any ideas??
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??