Click to See Complete Forum and Search --> : getBounds & GetRegionScans (region)


hcj
June 25th, 2005, 03:18 AM
Hi,

My lecturer told me that we can use
objRegion.getBounds(CreateGraphics()).Contains(e.X,e.Y) , which the e is the MouseEventArgs object. To check whether is that user click inside that objRegion in Rectangle shape or not.
But is that possible for us to create a shape in circle or polygon, which the user have to be click exactly inside of it??

By the way, i.m not very about what is GetRegionScans is doing, is that anyone can explained it to me? and how to use it? Since i check from the MSDN its said that its accept a matrix param, but i'm not sure where to get it.

Also, what is the CreateGraphics() method do?

Any help will be appreciate, thank you