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/
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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
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/
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
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
FreeImage is OK, and already proven to be cooperable with TBGL.
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
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
I found this called paintlib written in C++.
PaintX.dll have 444kB size.
http://www.paintlib.de/paintlib/
Bookmarks