Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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??

  • *Experts*
Posted
Only Graphics objects or Rectangle is accepted alone in the overloads, only the last overload accepts a Region but also another argument, CombineMode.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...