摘要: 没什么想法,就是想找个偷懒的方法显示个图片,至少要支持bmp,最好顺带多支持几种格式类型,本以为上网搜下就有了,结果还搞了半天。没时间多写,贴个代码:void test(CDC &dc){ const char imgName[64] = ".//1252.png"; int width; int height; // 获得图像文件的类型 FREE_IMAGE_FORMAT fifmt = FreeImage_GetFileType(imgName, 0); // 加载此文件 FIBITMAP *dib = FreeImage_Load(fifmt, imgName 阅读全文
posted @ 2010-11-27 22:37 windtail 阅读(2564) 评论(0) 推荐(0) 编辑