Page 1 of 1
[Implemented] SaveImage()
Posted: Tue Dec 04, 2001 7:38 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.
It would be nice to have a SaveImage command
Result = SaveImage(#Image, FileName$)
so we can easily load an image, draw on it and then save back to disk.
Posted: Tue Dec 04, 2001 7:48 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
Planned.. I hope for the next release. But BMP writting code shouldn't be so hard to adapt in PB

. LoadImage() and CreateImage() returns the Windows Bitmap pointer (HBMP).
Fred - AlphaSND
Posted: Tue Dec 04, 2001 11:12 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
Done. Updated lib can be found on
http://www.purebasic.com/update/Image
Fred - AlphaSND
Posted: Wed Dec 05, 2001 7:22 am
by BackupUser
Restored from previous forum. Originally posted by Paul.
Excellent job Fred !!
I was having a heck of a time drudging through the dreaded Windows API trying to make heads or tails of the whole Bitmap process.
Posted: Thu Dec 06, 2001 7:45 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.
Hey Fred,
I have a BMP that is 900kb (640x480)
When I save it to disk using SaveImage() the resulting file is 1200kb and is unreadable by PhotoShop. MS Paintbrush will read it but what's with the extra 300kb ?? (is it trying to save Alpha info?)
Posted: Thu Dec 06, 2001 11:45 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
Unreadable with photoshop ? Damn. In fact, it saves in the same format than your screen mode (I guess you work in 32 bit). It's a bit silly and I will try to change it quickly. Thanks for the info..
Fred - AlphaSND