I have some bitmaps and I would like to save them to a single image with a given number of images in a column and row. How do I do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a bitmap the size of the overall total. Load each source bitmap in turn, blit it to the appropriate location in the combined bitmap. Save the combined bitmap.
Saving the composite is probably the most tedious of these steps, (you need to create and fill in a
BITMAPFILEHEADERfollowed by aBITMAPINFOHEADER,BITMAPV4HEADERorBITMAPV5HEADER), but none of it is particularly difficult and Google should turn up lots of examples.