如何调整位图文件大小以适应图片控件大小 [英] How Can I Resize Bitmap File To Fit Into Picture Control Size
问题描述
你好;
如何调整位图文件大小以适应图片控件大小
假设我的图片控件变量是Display_Map_Temp,这里是我的代码的快照,我想调整大小代码应该在attach和setbitmap之间
任何帮助请<; br $>
HANDLE hBitMap = :: LoadImage(0,Bitmap_File_Path,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
Bmp_MAP_TEMP.Attach((HBITMAP)hBitMap);
Display_Map_Temp.SetBitmap(Bmp_MAP_TEMP);
Bmp_MAP_TEMP.Detach();
谢谢;
hello;
how can i resize bitmap file to fit into picture control size
suppose that my picture control variable is Display_Map_Temp, here is the snap of my code, i suppose that the resizing code should be in between attach and setbitmap
any help please;
HANDLE hBitMap = ::LoadImage(0, Bitmap_File_Path ,IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
Bmp_MAP_TEMP.Attach((HBITMAP)hBitMap);
Display_Map_Temp.SetBitmap(Bmp_MAP_TEMP);
Bmp_MAP_TEMP.Detach();
thanks;
推荐答案
请参阅这些CodeProject文章:
Plain C Resampling DLL [ ^ ],
图像大小调整 - 胜过GDI + [ ^ ]。
你可以找到更多:http://bit.ly/1uSF1kd [ ^ ]。
-SA
Please see these CodeProject articles:
Plain C Resampling DLL[^],
Image Resizing - outperform GDI+[^].
You can find some more: http://bit.ly/1uSF1kd[^].
—SA
非常感谢您的帮助,
i在此链接中有一个简单的解决方案
http://www.experts-exchange.com/Programming/System/Q_11279779.html [ ^ ]
再次感谢
thanks a lot for your help,
i have a straightforward solution in this link
http://www.experts-exchange.com/Programming/System/Q_11279779.html[^]
thanks again
这篇关于如何调整位图文件大小以适应图片控件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!