如何分割图像 [英] how to split an image

查看:101
本文介绍了如何分割图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要你的帮助。如何在FreeImage的帮助下拆分图像。

我渴望得到你的回复并真正帮助你做出帮助。

解决方案

看了在手册...



从头开始在内存中创建新的位图并复制粘贴



< pre lang =text> FreeImage_Allocate(int width,int height,int bpp);

FreeImage_Copy(FIBITMAP * dib,int left,int top,int right,int bottom);

FreeImage_Paste(FIBITMAP * dst,FIBITMAP * src,int left,int top,int alpha);





这不起作用吗?


Hi,
I need your help. How can I split an image with FreeImage's help.
I'm longing for your reply and realy apreaciat your help.

解决方案

Just looked at the manual ...

create new bitmaps in memory from scratch and do copy paste

FreeImage_Allocate(int width, int height, int bpp);

FreeImage_Copy(FIBITMAP *dib, int left, int top, int right, int bottom);

FreeImage_Paste(FIBITMAP *dst, FIBITMAP *src, int left, int top, int alpha);



Does this not work ?


这篇关于如何分割图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆