C# Graphics: Region Clip and Hit Testing

277 Views Asked by At

I have a complex user control with 384 "wells" = circles each surrounded by a rectangle. Circle and surrounding rectangle colors are updated individually and independently from the control mouse events and also by commands from the parent form. The "Well" shapes are drawn in the Paint event, though I have also played with CreateGraphics() for individual "Well" updates (why else would the method exist?) I've no experience with Regions, but understood that Graphics might take care of some local control section or clip paints (v. fuzzy on that part). I was wondering if I should be using Regions with Clip and Hit Testing for the "Wells" in this kind of control?

enter image description here

0

There are 0 best solutions below