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