471,319 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Can I draw overlapped PNG files with transparent background inimageboxcontrol?

Dear all,

I'm trying to draw many overlapped PNG files with transparent background
in imagebox control.
But the transparent background in this control is rendered as the main
control's background color.
So the image formerly drawn is covered by the latter image with unwanted
background color.
I wonder if I can get really transparent background color.

Appreciate any help.
Thanks in advance.
Jun 10 '07 #1
2 6433
Niu,

You could probably draw all the PNG images to a new image, and the
transparency will be maintained, and then show that in the picturebox.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Niu Kun" <ha*******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Dear all,

I'm trying to draw many overlapped PNG files with transparent background
in imagebox control.
But the transparent background in this control is rendered as the main
control's background color.
So the image formerly drawn is covered by the latter image with unwanted
background color.
I wonder if I can get really transparent background color.

Appreciate any help.
Thanks in advance.
Jun 10 '07 #2
Nicholas Paldino [.NET/C# MVP] 写道:
Niu,

You could probably draw all the PNG images to a new image, and the
transparency will be maintained, and then show that in the picturebox.

Dear Mr. Paldino,

Thank you for your reply.
But this may result in some other problem.
Do you mean that I can create Image object with some other Image object
at various location?
And I'll have draw the image dynamically as the user click on the panel.
I'll have to create the image each time the Image is click on, and this
seems to be difficult.
Will Directx be helpful?

Thanks again for your kind suggestion.
Jun 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by DraguVaso | last post: by
1 post views Thread by Efkas | last post: by
3 posts views Thread by Ian Jagger | last post: by
10 posts views Thread by Phil | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.