Re: RFC: use svg for widgets instead of png/gif

Tupshin Harper <[email protected]> Sat, 27 Dec 2003 21:09:03 -0800
Newsgroups gmane.comp.java.xwt.widgets
Message-ID <[email protected]>
Tupshin Harper wrote:

 > Adam Megacz wrote:
 >
 >> Could you run kvec on something more complex?  Like with curves?
 >> Like a radio button?  I suspect that it will resort to using
 >> rasters.
 >>
 >> - a
 >>
 >>
 >>
 > Sure...here's one that I had already done. Two radio buttons and
 > two checkboxes (from the google preferences page). Looking at the
 > svg soure, and at the results of scaling it, it appears that the
 > curves are done roughly pixel by pixel...

This is actually completely incorrect. Instead of 46 different
non-white pixels (which is what the bitmap has), the svg converted one
consists of 8 polygons. This actually makes it scale better (though
very chunky) than a normal bitmap scaling algorithm would do and it is
fairly easy to modify the svg to have smoother path nodes and more of
them to greatly enhance the scaled versions.

-Tupshin