Can I draw overlapped PNG files with transparent background inimageboxcontrol?

N

Niu Kun

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

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

Niu Kun

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top