CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2011

    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

    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
    United States

    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,

    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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.