Results 1 to 7 of 7

Thread: Graphics format conversions

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved 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)

  2. #2
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    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.

  3. #3

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Graphics format conversions

    Quote Originally Posted by Keithuk
    There is a BMP2JPEG.DLL that will convert what it says.

    http://www.dynamiclink.nl/htmfiles/rframes/dll-b02.htm
    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)

  4. #4
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: Graphics format conversions

    There is only one call.
    VB Code:
    1. Private Declare Function BmpToJpeg Lib "Bmp2Jpeg.dll" (ByVal bmpFileName _
    2. As String, ByVal JpegFilename As String, ByVal CompressQuality As Integer)_
    3. 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.

  5. #5

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

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

  6. #6
    New Member
    Join Date
    Apr 2004
    Posts
    11

    Re: Graphics format conversions

    Thanks Guys ... specially for (Bmp2jpg.zip)
    Great One

  7. #7
    New Member
    Join Date
    Dec 2011
    Posts
    1

    Re: Graphics format conversions

    Thanks man

Posting Permissions

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



Click Here to Expand Forum to Full Width