Combining several Bitmaps
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Combining several Bitmaps

  1. #1
    Join Date
    Jul 2011
    Posts
    19

    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?

  2. #2
    Join Date
    Jul 2011
    Posts
    19

    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.

  3. #3
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,006

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center