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



Manuel Bleichenbacher wrote:
> Anti-aliasing requires a lot of colors.

Of course, that's the whole point -- I want to TURN OFF
the anti-aliasing and just render without it!

Can libart do that, or am I stuck with the anti-
aliasing? 

> What ever you do, the rendered image has more than 256 colors. If it is to
> be saved with a 256 color palette, a color reduction step is required,
> which is rather expensive (CPU wise).

It is a ridiculous waste of CPU time to do
anti-aliasing then color-reduction (both very CPU-intensive).
If I could just eliminate the anti-aliasing in the
first place, that would obviously be the thing to do.

However, if I can't convince libart to do this, I would
have to re-implement the whole SVG renderer using
non-anti-aliasing vector graphics, such as the SGE
library provides. But that would be a LOT of work.
Probably it would be prohibitive and I'd be stuck
with the kludge of color-reducing the rsvg output,
at least until someone volunteers to write a simpler
SVG renderer for me ;).

And yes, I realize I'm asking to throw away some of
the best qualities of libart.  What's going on here,
is that it is a lot faster and simpler to work with
palette graphics.  For the same reason, it would be
nice to eliminate unnecessary computation in
rendering the graphics in the first place.

Thanks!
-- 
Terry Hancock
hancock earthlink net




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