Gizmo001 Posted March 10, 2003 Posted March 10, 2003 How do you overlay one bitmap image over another (e.g., two maps) in VB.Net? Quote
*Gurus* divil Posted March 10, 2003 *Gurus* Posted March 10, 2003 If you're using Graphics.DrawImage to draw them, you could use the ImageAttributes class together with a ColorMatrix to give the second one an alpha component of 0.5. That way, you'd see right through it to the first. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Gizmo001 Posted March 10, 2003 Author Posted March 10, 2003 I have used alpha properties to draw over the basemap. However, I am adding other details outside of the basemap region on another bitmap image. Then I would like to overlay the first image over the next. I have to overlay because the first bitmap has the dimensions of the basemap-file (bmp file); and I am unable to change the bitmap size at runtime. Thanks. Quote
Gizmo001 Posted March 11, 2003 Author Posted March 11, 2003 Divil: I was able to merge the two bitmap images with the DrawImage property of graphics objects. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.