Cay you add a .gif or .png to a bitmap image taht altready exists?

G

Guest

I have a bitmap image that's around 640 x 480 pixels. I want to add some
..gif or .png files to the image before displaying it in my application. Is
there a way of doing this?

Cheers
Niels
 
B

BluDog

I have a bitmap image that's around 640 x 480 pixels. I want to add some
.gif or .png files to the image before displaying it in my application. Is
there a way of doing this?

Dim bmp As New Bitmap("C:\MyImage.jpg")
Dim g As Graphics = Graphics.FromImage(bmp)
g.DrawImage(Image.FromFile("C:\MyOtherImage.jpg"), 5, 5)
PictureBox1.Image = bmp

Hope this helps

Blu.
 
H

Herfried K. Wagner [MVP]

BluDog said:
Dim bmp As New Bitmap("C:\MyImage.jpg")
Dim g As Graphics = Graphics.FromImage(bmp)
g.DrawImage(Image.FromFile("C:\MyOtherImage.jpg"), 5, 5)
PictureBox1.Image = bmp

\\\
g.Dispose()
///
 

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