多种图片格式转换成BMP

来源:互联网 发布:怎样才能当淘宝客服 编辑:程序博客网 时间:2024/06/05 20:46
#include <atlimage.h>
CImage img; //JPG / JPEG / GIF / PNG 格式的图片
 HRESULT ret = img.Load(FileName); // filename 是要加载的文件名(包含路径) 
 HBITMAP bitmap = img.Detach(); 
 CBitmap bmp;
 bmp.Attach(bitmap); 
img.Save("c://B.bmp"); 
img.Detach();
原创粉丝点击