Saving as JPG

Blitz3D Forums/Blitz3D Beginners Area/Saving as JPG

JPD(Posted 2004) [#1]
Hello,

how can I save a picture in my BB-Programm as a JPG-File?


EOF(Posted 2004) [#2]
Have a look at Paul Snarts excellent FreeImage library.


JPD(Posted 2004) [#3]
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?


Snarty(Posted 2004) [#4]
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.


EOF(Posted 2004) [#5]
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?


JPD(Posted 2004) [#6]
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


Snarty(Posted 2004) [#7]
@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.


EOF(Posted 2004) [#8]
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.


JPD(Posted 2004) [#9]
OK, lets wait for those update ;-) ... Thx for help ...


Snarty(Posted 2004) [#10]
.