Skip to content

C# Region clip to a rectangle?

Jason

Asked Mar 24, 2010, 3:03 PM EDT2 answers
Share
LinkedInX
Currently, i have a rectangle and 3-4 circles which are bigger but not covering the entire rectangle. How can i show that the region for the circles are clipped to the rectangle? (Only visible within the rectangle?)

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Thanks for the link. Right now, i have two ArrayLists - one contains the rectanlges and one contains the circles. The circles are palced randomly, some overlay the rectangles.

     I would like to clip the regions of those circles such that circles will be visible within each rect? As i'll will be doing the .isVisible method if detecting the circles in the rectange itself. I'm lost here.. pls help..
    0