After installing the platform SDK, setting up the directories for the includes and gdiplus.lib and making sure that the gdiplus.dll was in the same directory as the application's .EXE, I get the following run-time error when running the Microsoft example code:
The procedure entry point GdiPlusStartup could not be locatetd in the dynamic link library gdiplus.dll
Does anyone have an idea whay this does not work?
Image *img = new Image(L"input.tif");
Graphics g( img );
Remarks: (from MSDN)
This constructor - Graphics g( Image*) - also fails if the image uses one of the following pixel formats:
I tried everything, but I cannot create Graphics object from Image or Bitmap objects. After Graphics constructor GetLastState() always returns OutOfMemory.
During debug session, after constructing Image object and before constructing Graphics object from Image, I tried to delete "input.tif" file - I cannot because it's already opened. Conclusion is that Image constructor left file opened. If so, what then?
Is there any other way to connect Graphics and Image -Bitmap objects?
I had not yet heard of GDI+...I downloaded it and was experimenting with it (gleefully) in just about 20 minutes. I hope that others reading this realize just how significant an improvement over GDI this really is. As someone who has fought with GDI for many years now, this is a very welcome step up. Contrary to what others are saying, I've found the documentation on the MSDN site to be quite extensive and abundantly helpful. The page is bookmarked in my browser and I just keep it open while I'm working on my project. Thanks again! -John