Graphics format conversions
I'm tired of googling on my own...
I'd like to find a free dll supporting graphic file format conversions, for example from bmp to png and jpg.
I've tried one or two that work satisfactorily but they must be called from the command line. Shelling from VB doesn't always work, depending on the file pathes.
Re: Graphics format conversions
There is a BMP2JPEG.DLL that will convert what it says.
http://www.dynamiclink.nl/htmfiles/rframes/dll-b02.htm
Re: Graphics format conversions
Quote:
Originally Posted by Keithuk
I bookmark this site though file download is currently disabled. How about dll functions declaration? Is that described anywhere?
Re: Graphics format conversions
There is only one call.
VB Code:
Private Declare Function BmpToJpeg Lib "Bmp2Jpeg.dll" (ByVal bmpFileName _
As String, ByVal JpegFilename As String, ByVal CompressQuality As Integer)_
As Integer
bmpFileName, JpegFilename and CompressQuality from 20 to 100.
I was at work when I sent the first reply, I didn't have the zip file with me so I left a link to get it.
I've added Bmp2Jpeg.dll in the zip file. Just put it in your Win\Sys folder, no need to register it. :bigyello:
Re: Graphics format conversions
Quote:
Originally Posted by Keithuk
There is only one call.
[Highlight=VB]I've added Bmp2Jpeg.dll in the zip file. Just put it in your Win\Sys folder, no need to register it.
Thank you. Now I come to think of it, I'd rather have the converting procedures in a class rather than in a dll so I guess I'm going to start a new thread.
Re: Graphics format conversions
Thanks Guys ... specially for (Bmp2jpg.zip)
Great One ;)
Re: Graphics format conversions