Problem with changing the region of a picture box

paulos

New member
Joined
Dec 1, 2006
Messages
1
Programming Experience
1-3
Hello,

after I created a PictureBox which doesn't display colors set as transparent in ImageAttributes, I need to exclude these "transparent pixels" from the region responding to events. I tried to do it using Bitmap.GetPixel

(checking if color at point belongs to those transparent and then excluding rectangle (x,y,1,1) from Me.Region),

however it excludes either whole PictureBox or nothing. Is it a good way of thinking what I'm doing? What's wrong in it?

Thanks.
 
Back
Top