-
July 21st, 2011, 06:02 PM
#1
Combining several Bitmaps
I am taking several bitmaps and drawing them onto a picturebox with a low opacity so that all of the bitmaps can be seen together as one picture.
My problem is that any time I need to re-draw this "final combined image", I have to put all of the pictures on top of each other again, which is slow when you're dealing with 100+ bitmaps.
How might I be able to draw each bitmap (with opacity) onto a new "final bitmap" rather than onto the picture box so that I can just paste in the final result quickly?
-
July 21st, 2011, 06:46 PM
#2
Re: Combining several Bitmaps
Figured it out.
Just make a graphics from the final bitmap and draw each individual bitmap onto it using the same color matrix and it still works.
-
July 21st, 2011, 09:04 PM
#3
Re: Combining several Bitmaps
Glad you solved your problem. If you're dealing with blending images with transparency you may also be interested in alpha blending; link: http://en.wikipedia.org/wiki/Alpha_compositing
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|