Advice on image conversion library...

Everything else that doesn't fall into one of the other PB categories.
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

Advice on image conversion library...

Post by localmotion34 »

I need a way to convert images from bmp to jpg, tiff, PNG, GIF, ICO, TGA, and quite a few others. the native PB image plugins are taken care of, but there are many other formats id like to have available.

ive looked at the Freeimage library, but there are so many constants, and the freeimage.h file is written for C++.

i dont know if El_choni's image plugins allow to ENCODE images to a particular format, which it doesnt look like they do.

i dont really have the money to buy a commercial DLL, of which most are very expensive.

1) are there any other good free, somewhat easy to use, DLL or libs out there to take a hbitmap and convert it to many formats?

2) is there a PB include for the Freeimage library that i am missing? i spent all day looking and couldnt find one.

3) anyone have any source code that can convert bitmaps to other image formats? any examples maybe? ive got some karma for the double sublcassing today, and am hoping for some advice on how to proceed. :D

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

In the IncludePack for jaPBe is a wrapper for FreeImage.dll
FreeImage.pbi (for PB3.94)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply