Results 1 to 5 of 5

Thread: Seeking new image library

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Seeking new image library

    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

  2. #2

    Seeking new image library

    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/


  3. #3
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Seeking new image library

    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

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Seeking new image library

    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

  5. #5

    Re: Seeking new image library

    I found this called paintlib written in C++.
    PaintX.dll have 444kB size.

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

Similar Threads

  1. TBTIL Texture Image Library
    By D.J.Peters in forum TBTIL Texture Image Library
    Replies: 19
    Last Post: 08-03-2010, 11:17

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •