B
Battal
Hi,
I'm trying to develop a user control with transparent
background. In my application I'll have a picturebox
control with my background image on it, and on top of the
picturebox control I'll put my usercontrols with images on
it. And I want this images to be drawn transparent.
In my OnPaint event of the usercontrol, I get the first
pixel of my image, and create an image attributes object
and draw it. However it's not transparent. the image is
drawn as it is.
Another weird thing is, I edit my images(.bmp) in MS
Paint. And my transparency color is white, RGB(255, 255,
255). However when I read the image from within my
application and get the first pixel using Image.getPixel
(0, 0) the rgb value that I get is RGB(248, 248, 248).
Isn't that weird? Or, am I missing something?
Any samples or ideas?
Regards
Battal Abdurrahman
I'm trying to develop a user control with transparent
background. In my application I'll have a picturebox
control with my background image on it, and on top of the
picturebox control I'll put my usercontrols with images on
it. And I want this images to be drawn transparent.
In my OnPaint event of the usercontrol, I get the first
pixel of my image, and create an image attributes object
and draw it. However it's not transparent. the image is
drawn as it is.
Another weird thing is, I edit my images(.bmp) in MS
Paint. And my transparency color is white, RGB(255, 255,
255). However when I read the image from within my
application and get the first pixel using Image.getPixel
(0, 0) the rgb value that I get is RGB(248, 248, 248).
Isn't that weird? Or, am I missing something?
Any samples or ideas?
Regards
Battal Abdurrahman