The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Gif issue resolved :-)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paschal

Posts: 1621
Nickname: bigapple
Registered: Nov, 2003

Paschal is a .Net developer
Gif issue resolved :-) Posted: Jul 2, 2004 3:40 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Paschal.
Original Post: Gif issue resolved :-)
Feed Title: help.net
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/pleloup/Rss.aspx
Feed Description: .Net for mankind !
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Paschal
Latest Posts From help.net

Advertisement

A great thanks to Paul Nicholls who pointed me to the right solution. This is absolutely brilliant the way a community can work.

Apparently the culprit is GDI which use a web safe colours palette when you use image GIF format. Quite odd because this is way back to the time where users didn't have more than 256 colours from their graphics card.

I hope this can be solved in .Net 2. By the way does somebody know if we have to expect some new features in GDI+ 2.0 ?

Check this article on MSDN to know more about the solution which is to render a GIF image with a different palette. I choose the adaptive one (OctreeQuantization method) and it's perfectly fine.

The results of the quantization process are shown below.

Quantization TypeImageImage Size (in KB)

None (default GDI+)

21342

Palette-based

16748

Octree-based

16744

Figure 5. Comparison of quantization results

The palette and Octree results are 20 percent smaller than the default GDI+ rendering using a Web-safe palette, and the image quality is far superior. The palette- and Octree-based images are different because the images contained slightly differing text. Your results may vary based on the size of the image, but generating images that are smaller yet better has to be worthwhile.

 

Read: Gif issue resolved :-)

Topic: Full Whidbey VS2005 Enterprise Architect Beta 1 up on MSDN Subscriber Downloads Previous Topic   Next Topic Topic: Code4fun new article

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use