Results 1 to 10 of 10

Thread: DLL for handling JPG and other formats

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

    DLL for handling JPG and other formats

    I found the library included in the attached file: NishitaView Version 1.1.4 .DLL picture viewer (32bit)
    http://www.delphi32.com/vcl/589/

    It seems we can use to load JPG and other graphics. Very easy to be used, see readme file.
    What do you think? If you think we can use, I can embed in thinBasic official distribution.

    Eros
    Attached Files Attached Files
    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
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: DLL for handling JPG and other formats

    Thanks Eros,

    I like the DLL is very small.
    I will play with it more once I have more time.


    Thanks,
    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

  3. #3

    Re: DLL for handling JPG and other formats

    Three are some interesting free image dll on Alyce Watson's site:

    Image Loading DLL for Liberty BASIC 3+ !

    jpegdll.zip (6 KB) Load JPEGs, GIFs and more.

    Updated documentation March 10, 2004. Now includes call to DeleteObject for images returned by the DLL.

    Here is a free, easy to use image loading DLL. It will load bitmaps (bmp), JPEGs (jpg), GIFs (gif), icons (ico), Windows metafiles (wmf) and enhanced metafiles (emf). It loads bitmaps THREE TIMES FASTER than the Liberty BASIC "loadbmp" command! It also includes functions to retrieve the width and height of the loaded image. It is only 24KB in size, much smaller than the nviewlib.dll, which is nearly 300KB.

    Image323 DLL for Liberty BASIC 3+ !

    image323.zip (18 KB) Load JPEGs, GIFs and more.

    Updated documentation March 10, 2004. Now includes call to DeleteObject for images returned by the DLL.

    A FREE image manipulation DLL for Liberty BASIC 3. Functions include color changes like tint, colorize and grayscale. It also has filtering functions like blur, sharpen and pixelate. Functions also include bitmap information functions, rotation, and more. This DLL manipulates images in memory and returns a handle to the new bitmap. It can then be loaded with LOADBMP, drawn with DRAWBMP and saved with BMPSAVE. The entire image will be drawn and saved, because this method doesn't require GETBMP to be used prior to saving the image. There is also a function to convert a bitmap to 24-bit format. LB saves bmps in the screen resolution, and some paint programs cannot open 32-bit bitmaps, so this function is very handy.

    The DLL also includes support for loading jpg, bmp, ico, gif, wmf and emf image file formats! Load bitmaps THREE TIMES FASTER than the Liberty BASIC "loadbmp" command!

    The DLL is released as FREEWARE, with no warantees expressed or implied.
    http://alycesrestaurant.com/dll.htm

    Maybe can be got to work in thinBasic? See .bas files included with free dll's.


    catventure
    http://tab.thinbasic.com - Home Of The ThinBasic Adventure Builder Project. (Interactive Fiction/Text Adventure Maker)

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

    Re: DLL for handling JPG and other formats

    Nice finds guys, but it would be nice to find one library that would also support png format along with what these libraries support.
    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

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

    Re: DLL for handling JPG and other formats

    What I was thinking about is a way to incorporate into thinCore.dll some special SDK interface functions (like thinBasic_ParseString or thinBasic_ParseNumber) to handle images. Than publish them to all modules in need of an image handle.

    So something like:
    thinBasic_ImgLib_Available
    thinBasic_ImgLib_SupportedFormats
    thinBasic_ImgLib_LoadImage
    thinBasic_ImgLib_Width
    thinBasic_ImgLib_height
    ...

    So a set of unified interface functions avaibale for those developing modules.
    Internally thinCore.dll would take care of the implementation maybe interfacing to different libs depending on what is available in the running system: GDI+ (if available), nviewlib (if available), jpegdll (if available), image323 (if available), ... and so on.

    The important is to expose always the same interface functions.

    Just thinking ...
    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

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

    Re: DLL for handling JPG and other formats

    Eros,

    this is very strong idea!
    It would make module development very fast.


    Thanks,
    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

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

    Re: DLL for handling JPG and other formats

    I agree, a wonderful idea Eros!!!!
    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

  8. #8

    Re: DLL for handling JPG and other formats

    That sound pretty good.

  9. #9

    Re: DLL for handling JPG and other formats

    Eros,

    please note that it'is very important that the core does not rely upon on others library that those of Windows and ThinBASIC.

    Ciao,
    Roberto
    http://www.thinbasic.com

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

    Re: DLL for handling JPG and other formats

    Yes Roberto, you are right.

    Another option is to create a double interface module able to load new keywords into thinBasic language when loaded by a script but at the same time exporting some functions to be used by other modules directly.

    ...
    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

Similar Threads

  1. 3D file formats
    By kryton9 in forum TBGL General
    Replies: 5
    Last Post: 22-11-2007, 10:36

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
  •