Page 1 of 1

Converting BMP to JPG using Visual C++

Posted: Fri Jan 29, 2010 12:53 pm
by Neo
Use following code for image format conversion using Visual C++.

Code: Select all

	CString path = _T("e:\\test.bmp");
	CImage *image = new CImage;
	HRESULT hResult = image->Load(path);
	hResult = image->Save(_T("e:\\test.jpg"));