From: Sonu on 26 Jul 2006 19:03 "Sonu" wrote: > Image.Save(_T("myImage.jpg", ImageFormatJPEG ); > the compiler says that ImageFormatJPEG is an undeclared identifier!! But it > savs it as jpeg if I don't mention a second parameter! > > What is wrong with "ImageFormatJPEG" Oh, I think I have to include Gdiplusimaging.h for that prblem. But why do you need it anyway, if you can do without it?
From: "Gary Chang[MSFT]" on 27 Jul 2006 03:01 Hi Srishti, >> What is wrong with "ImageFormatJPEG" > > >Oh, I think I have to include Gdiplusimaging.h for that >prblem. But why do you need it anyway, if you can >do without it? No need for the Gdiplusimaging.h header file. This problem is because of the "ImageFormatJPEG" is defined under the Gdiplus namespace, so add a using directive should resolve the problem: ... using namespace Gdiplus; Image.Save(_T("myImage.jpg", ImageFormatJPEG ); Have a nice day Best regards, Gary Chang Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
From: "Gary Chang[MSFT]" on 31 Jul 2006 22:26 Hi Srishti, If you have any issues or concerns, please let me know. It's my pleasure to be of assistance. Good Luck! Best regards, Gary Chang Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
First
|
Prev
|
Pages: 1 2 Prev: CException difference in VS2005 Next: Trying to handle events from HTMLElementEvents... |