By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,931 Members | 1,331 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,931 IT Pros & Developers. It's quick & easy.

Merge one bitmap onto another in vb

P: n/a
I load a bitmap from a file and display it in a PictureBox:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Fn As String = "C:\MyPath\FirstFile.bmp"
Dim B As Bitmap = Bitmap.FromFile(Fn)
PictureBox1.Image = B
End Sub
This works fine!
But now I want to load a second bitmap and write onto the first bitmap:
Dim Fn1 As String = "C:\MyPath\SecondFile.bmp"
In the second.bmp, the image is surrounded by white pixels, which I want to
make transparent when I merge the images.

How do I do this?

Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.