开发者

combine and save images in c++

开发者 https://www.devze.com 2023-02-18 14:44 出处:网络
I have 开发者_如何学Csome 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? Create a bitmap the size of the overall total. Lo

I have 开发者_如何学Csome 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?


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 BITMAPFILEHEADER followed by a BITMAPINFOHEADER, BITMAPV4HEADER or BITMAPV5HEADER), but none of it is particularly difficult and Google should turn up lots of examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消