PaulStat Posted September 9, 2003 Posted September 9, 2003 I'm trying to use the SetClip method of the Graphics object, Like so 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?? Quote
*Experts* mutant Posted September 9, 2003 *Experts* Posted September 9, 2003 Only Graphics objects or Rectangle is accepted alone in the overloads, only the last overload accepts a Region but also another argument, CombineMode. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.