Saving as JPG
Blitz3D Forums/Blitz3D Beginners Area/Saving as JPG
| ||
Hello, how can I save a picture in my BB-Programm as a JPG-File? |
| ||
Have a look at Paul Snarts excellent FreeImage library. |
| ||
OK, i have tried it, in the example-exe it works fine, but in BlitzPlus it doesn't. It says, any functions are missing ... why? |
| ||
Hi, cheers for linking, Syntax. JPD, Ensure you have the latest version of BlitzPlus, as the FreeImage library utilises flag 4 Images. You also need to ensure all the .decls are in place. |
| ||
Hi there Snarty, I'm using the lib for a tool under development. It is really great and easy to use. Wll done. Credits will be in the tool. Is it possible to load TGA files some how? BlitzPlus does not seem to handle them? |
| ||
Ok, i have tried with the newest Version 1.37 -> It says Function "Load Icon" not found ... (example.bb) Why is the Example uncomplete?? J.P.D |
| ||
@Syntax: Cheers, I'm glad you like it, I will be releasing a new version soon'ish. Don't panic, it will just be a matter of overwriting the old include, dll's, and .decls. As for TGA, if you use the FreeImage to load images, it should be able to load TGA perfectly fine. Though, I think there maybe problems with compressed versions, due to patent issues. (not tested) @JPD: You need to ensure all four .decls are situated in the Userlib folder, this is in the program directory for BlitzPlus. Also, both dll's need to be in Data/ in the program directory of your project. |
| ||
if you use the FreeImage to load images, it should be able to load TGA perfectly fine Your right. It does. I was using:blah=LoadImage("xxx.tga") BlitzPlus apparently does not handle TGA format. This works a treat: img=FILoadImage("xxx.tga") Super. Looking forward to the update. |
| ||
OK, lets wait for those update ;-) ... Thx for help ... |
| ||
. |