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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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()
///
 
Back
Top