Saving a bitmap image in visual C++ 2003
-
I want to save a bitmap image in Visual C++ 2003.I use the save method of the bitmap class of Gdiplus this way: Gdiplus :: bitmap mybitmap; mybitmap.save (L"C:\myFolder\",&bmpClsid); But I get a win32Error. Thanks in advance.
-
I want to save a bitmap image in Visual C++ 2003.I use the save method of the bitmap class of Gdiplus this way: Gdiplus :: bitmap mybitmap; mybitmap.save (L"C:\myFolder\",&bmpClsid); But I get a win32Error. Thanks in advance.
Did you try with CImage class? it has save method.
-
Did you try with CImage class? it has save method.
I want to use GDIPlus:: Image.
-
I want to save a bitmap image in Visual C++ 2003.I use the save method of the bitmap class of Gdiplus this way: Gdiplus :: bitmap mybitmap; mybitmap.save (L"C:\myFolder\",&bmpClsid); But I get a win32Error. Thanks in advance.
MozhdehQeraati wrote:
mybitmap.save (L"C:\myFolder\",&bmpClsid);
file path error? something like L"C:\\myFolder\\image1.bmp"
-
MozhdehQeraati wrote:
mybitmap.save (L"C:\myFolder\",&bmpClsid);
file path error? something like L"C:\\myFolder\\image1.bmp"
i Test with this format but get win32error.
-
i Test with this format but get win32error.
:) Hi, Did u start the GDI + engine? ULONG_PTR m_gdiplusToken; GdiplusStartupInput gdiplusStartupInput; GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL); Bitmap *pBitmap = Bitmap::FromFile(/*File name*/); CLSID Clsid = {0}; GetEncoderClsid(L"image/bmp", &Clsid)) CString strFilePath = "C://1.bmp"; pBitmap->Save(strFilePath.AllocSysString(),&Clsid); GdiplusShutdown(m_gdiplusToken); Prasanth M V Software Engineer.
-
i Test with this format but get win32error.
I would like to know the value of win32 error.