Hi, I got the bmp file loaded in object bmp. Now I want to save it as JPG. Can some one please help with it. I tried, but it saves the file with 0kb i-e no data.
Any help will be appreciated.
here what I am doing
wxBitmap bmp;
wxImage jpg = bmp.ConvertToImage();
jpg.SaveFile("C:\\myfile.jpg", wxBITMAP_TYPE_JPEG );
converting from BMP to JPG Topic is solved
converting from BMP to JPG
Who doubts nothing, Knows nothing
Hi!
Try with
Try with
Code: Select all
wxInitAllImageHandlers();
wxBitmap bmp(...);
bmp.SaveFile("Test.jpg",wxBITMAP_TYPE_JPEG);
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda