Results 1 to 3 of 3

Thread: Saved GIF image is grainy...why?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Saved GIF image is grainy...why?

    Hello,

    I can save a bitmap, jpeg, and tiff file with no problems, but when I save a GIF file it turns out grainy. Why? This is the code used to save the file.


    If saveFile.FileName.EndsWith("bmp") Then
    Pic.Save(saveFile.FileName, Imaging.ImageFormat.Bmp)
    ElseIf saveFile.FileName.EndsWith("gif") Then
    Pic.Save(saveFile.FileName, Imaging.ImageFormat.Gif)
    ElseIf saveFile.FileName.EndsWith("tiff") Then
    Pic.Save(saveFile.FileName, Imaging.ImageFormat.Tiff)
    ElseIf saveFile.FileName.EndsWith("jpg") Then
    Pic.Save(saveFile.FileName, ici, ep)
    End If

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Not sure why but I've just tried it and it does save without problems (quality isn't that perfect but this isn't a problem). Did you try this with different pictures with different resolutions ?

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    these 2 articles ( one in vb.net / one in C# ) both explain the reason / a way of saving gifs without 2 much trouble ...
    HOW TO: Save a .gif File with a New Color Table By Using Visual Basic .NET
    HOW TO: Save a .gif File with a New Color Table By Using Visual C# .NET
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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