Page 1 of 1

Save / Load Image Problem

PostPosted: Jul 22, 2002 @ 7:43pm
by Ken_McCaw
Hi, all.

I have an application which calls SaveImage to save a screen shot as a bitmap. The image is successfully saved, and is about 150K in size. I can copy it to desktop, and view it fine in Paintshop Pro.

The problem occurs when I call LoadImage. For some reason, the DecompressImageIndirect call in src\image.cpp is failing on both my Casio E-100 & E-200 devices. Calling FormatMessage(..,GetLastError(), .. ) returns the string "Cannot create file when that file already exists".

Any help is appreciated. I have a sample screen shot program which illustrates the problem. Here is the link: [url]mccawclan.home.attbi.com/screenshot.cpp[/url]. I would be curious to know if it happens on other devices as well.

Thanks,
Ken

PostPosted: Jul 22, 2002 @ 8:13pm
by Kzinti
Hi George, I did receive your email about this problem but didn't have time to look into it.

It might be that the BMP format used by PocketFrog to save the image is not compatible with imgdecmp.dll... Although it seems that the error message is saying otherwise... Could you post the code you use to save / load the image?

PostPosted: Jul 22, 2002 @ 9:02pm
by Ken_McCaw

Found a fix...

PostPosted: Jul 24, 2002 @ 4:49am
by Ken_McCaw