PDA

View Full Version : Seeking new image library



ErosOlmi
14-02-2010, 14:06
TImage seems based on a not reliable image library: pbimage lib from http://alycesrestaurant.com/dll.htm#pbimage
For simple images it is OK but as soon as you try to get something more, it shows its limits.
I'm sorry.

If someone knowns any good free image library, I will be happy to take a look and possibly create a thinBasic module. Personally I will be happy to manage just jpg and png formats. Library should not be a C++ library but a library able to be used in C.

In any case I think we should go in using GDI+ official Microsoft library.
WIN9X systems will be excluded (unless they download it from Microsoft) but I do not see much users around still using them.

Eros

Charles Pegge
14-02-2010, 14:53
Hi Eros

Is this suitable?
It can do everything that GDIP does
The download is 5 Meg but the DLL is ~2.3 Meg


http://freeimage.sourceforge.net/

kryton9
15-02-2010, 21:44
I tried using many libraries in c++ for images. Freeimage, surprised me in that none of the developers ever used opengl and they had no examples showing how to use it with opengl. I don't know if anything has changed in the last year, since it has been about a year since I tried to use it.

I had used GDI+ with some tutorials and it worked fine. Since thinBasic is meant to be used with Windows, I would think GDI+ is a good choice.

If you want to use an outside library, this library is very actively developed like thinBasic and seems to have a nice community around it:
http://www.sfml-dev.org/ but this is a C++ library.

Let me look up the good c library one I had found... http://openil.sourceforge.net/features.php

Petr Schreiber
15-02-2010, 21:55
FreeImage is OK, and already proven to be cooperable with TBGL. (http://community.thinbasic.com/index.php?topic=2972.0)

The problem is the size -> 1MB / 0.5MB zipped / 383 kB UPXed. So even the UPX version is as big as one classic TB EXE alone.

It would be ideal, in my opinion, to pick one library just for JPG, one just for PNG and embedd them into the module so user won't be distracted by this. The exterior interface would be unified for both formats.

Regarding BMP - we have tons of code to handle it. I would support it, everybody can use MS Paint, and for quick tests it is good choice.


Petr

Aurel
15-02-2010, 22:23
I found this called paintlib written in C++.
PaintX.dll have 444kB size.

http://www.paintlib.de/paintlib/