|
-
Apr 25th, 2005, 06:23 AM
#1
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.
Last edited by krtxmrtz; Apr 26th, 2005 at 06:50 AM.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Apr 25th, 2005, 06:38 AM
#2
Re: Graphics format conversions
There is a BMP2JPEG.DLL that will convert what it says.
http://www.dynamiclink.nl/htmfiles/rframes/dll-b02.htm
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Apr 25th, 2005, 11:00 AM
#3
Re: Graphics format conversions
 Originally Posted by Keithuk
I bookmark this site though file download is currently disabled. How about dll functions declaration? Is that described anywhere?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Apr 25th, 2005, 01:56 PM
#4
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.
Last edited by Keithuk; Apr 25th, 2005 at 02:00 PM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Apr 26th, 2005, 06:50 AM
#5
Re: Graphics format conversions
 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.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 15th, 2007, 11:35 PM
#6
New Member
Re: Graphics format conversions
Thanks Guys ... specially for (Bmp2jpg.zip)
Great One
-
Dec 7th, 2011, 12:55 AM
#7
New Member
Re: Graphics format conversions
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|