This post originated from an RSS feed registered with .NET Buzz
by Paschal.
Original Post: My gifs are too noisy
Feed Title: help.net
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/pleloup/Rss.aspx
Feed Description: .Net for mankind !
I need some help. I wrote some code to pull some images from a database and write them on a web page. Nothing special, the code is working well, except for one very annoying thing.
The pictures in Gif format come out with some noise (see example), dithered if you prefer. I know how to fix the problem for the images I create myself using a Graphics object but I can't figure out how to solve this one.
The JPeg are fine, but I am stuck with the Gifs.
I am sure it has something to do with ContentType, because my data is in a Stream, so obviously has to know the mime type to render the right format.
I tried this, but no success (the code is longer than that, but I removed the database part):
Dim bmp As Bitmap= New Bitmap(Processtoretrievemypicture)