Re: [LIBART] SVG-to-SDL Rendering with rsvg



Hello!

On 17 Apr 2001 00:43:50 -0700, Terry Hancock wrote:
> But the question on-topic for this list is what
> to do with the LibArt behavior.  By default at
> least, rsvg seems to do an anti-aliased full-color
> image. I would prefer to work with simple 8-bit palette
> graphics for this application, so I wonder if there's
> a way to make the rendering work that way, since
> it seems very inefficient to do an anti-aliased
> rendering and then a color-reduction to convert 
> back to palette graphics (both are expensive
> algorithms).  In principle, it should be a lot faster
> to just use the original SVG color palette.

You cannot. Libart does everything strictly aa, and as consequence
cannot use pallettes meaningfully (as there is no general way for doing
subpixel things on palette image).
I also do not know other libraries, but maybe you could search for SVG
viewers and inspect these for usable parts.
Alternatively you could write palette-based non-aa SVP rendering
yourself - should be very easy to do.

Also, what do you mean by SVG palette? AFAIK SVG is always in full RGB
colorspace?

Best wishes,
lauris Kaplinski







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]