bmp and jpg
-
i want to know how to transform bmp file to jpg file, and jpg file to bmp. Can you give me some information and source code about these? thank you.:((
GDI+ will do this for you. Otherwise, the source code is way too big to post here. Download paintlib or something if you must. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
i want to know how to transform bmp file to jpg file, and jpg file to bmp. Can you give me some information and source code about these? thank you.:((
BMP to JPG:- Graphics graphics(hdc); Image image(L"Mosaic.bmp"); graphics.DrawImage(&image, 10, 10); CLSID pngClsid; GetEncoderClsid(L"image/jpg", &pngClsid); image.Save(L"pubudu.jpg", &pngClsid, NULL); :)
-
i want to know how to transform bmp file to jpg file, and jpg file to bmp. Can you give me some information and source code about these? thank you.:((
There is no direct method to do it in VC++. U can easily do it using GDI+. Instead that if u want to do it in VC++ itself, then go for Intel Graphics Library. Add it to ur project. This is one of the way we have to do that. http://developer.intel.com/software/products/perflib/ijl/ and u can check this in CP also http://www.codeproject.com/bitmap/CXImage.asp#options and other freeimage libraries can be helpfull to u. ComputerNewton