Results 1 to 11 of 11

Thread: Convert Images upto 31 Formats using FreeImage.dll

Threaded View

  1. #5

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Convert Images upto 31 Formats using FreeImage.dll

    Convert to gif

    Code:
    dib = FreeImage_LoadEx(AppDataPath & "\" & "test.bmp")
    If (dib) Then
       Call FreeImage_SaveEx(dib, AppDataPath & "\" & "test.gif")
       Call FreeImage_Unload(dib)
    End If
    Convert to Grayscale
    Code:
    dib = FreeImage_LoadEx(AppDataPath & "\" & "test.bmp")
    dibGray = FreeImage_ConvertToGreyscale(dib)
    bOK = FreeImage_Save(FIF_GIF, dibGray, AppDataPath & "\" & "test.gif", 0)
    Last edited by Fazi; Jan 19th, 2009 at 06:59 AM.

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