I have two PNG files that contain some transparent areas. Both files have exactly the same dimensions. I'd like to overlay one on the other, and then output the result to a picturebox.
So far, I have:
Dim img As New Bitmap(46, 55) Dim g As Graphics = Graphics.FromImage(img) g.DrawImage(My.Resources.bgblue, 0, 0) g.DrawImage(My.Resources.tree, 0, 0) img = New Bitmap(img.Width, img.Height, g) img.Save("C:\Test1.png")
However, my output file comes out to be a filled black square.
I don't really have experience with image manipulation in programming, so I'm not really sure what I've done wrong.
Any advice would be greatly appreciated

Edit:
These images are all stored in a resource file. I'd like to have the user type in "tree" and the file stored in My.Resources.tree would be pulled up. How would I go about doing that? I can't use string concatenation, because, well, it's a string.
Any ideas?
Edited by aommaster, 26 December 2009 - 11:15 PM.