Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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;
Posted
Updated 10-Nov-14 2:19am
v2

Please see these CodeProject articles:
Plain C Resampling DLL[^],
Image Resizing - outperform GDI+[^].

You can find some more: http://bit.ly/1uSF1kd[^].

—SA
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900