Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #44.3K
~3K People Reached
Favorite Forums
Favorite Tags

2 Posted Topics

Member Avatar for shizu

Easiest solution is GDI+: [url]http://msdn.microsoft.com/en-us/library/ms534462%28v=VS.85%29.aspx[/url] Load your bmp file into an 'Image' object then save it using the appropriate encoder: [CODE] VOID Example_SaveFile() { // Create an Image object based on a PNG file. Image image(L"Mosaic.bmp"); // Save the image. CLSID jpgClsid; GetEncoderClsid(L"image/jpeg", &jpgClsid); image.Save(L"Mosaic2.jpg", &jpgClsid, NULL); } [/CODE]

Member Avatar for mrnutty
0
3K
Member Avatar for jimJohnson

use LPCTSTR or TCHAR instead of char this will enable you to compile the same code for both unicode and multibyte. LPCTSTR maps to wchar_t or char auto depending on your build options. [U]More details:[/U] [url]http://www.codeproject.com/Tips/76252/What-are-TCHAR-WCHAR-LPSTR-LPWSTR-LPCTSTR-etc.aspx[/url]

Member Avatar for luce
0
226

The End.