|
Boost : |
From: Joel de Guzman (joel_at_[hidden])
Date: 2006-10-15 07:18:12
Lubomir Bourdev wrote:
> It would be really nice if you (or another AGG fan?), being familiar
> with AGG, look into and perhaps post an example showing how GIL could
> work with AGG. For example, how do we draw a line directly inside a GIL
> view.
> It doesn't have to be a fully-generic view. Let's start with something
> simple like:
>
> void draw_line(const rgb8_view_t& view, int x0, int y0, int x1, int y1)
> {
> // AGG magic here.
> }
>
> You can get the dimensions, stride and pointer to pixels of a GIL view.
> Can you make a shallow AGG rendering buffer from them and draw a line
> into it?
>
> The next question is, can we make draw_line more generic, and how much
> more generic (i.e. what kinds of images are possible)
Hi Lubomir,
I have something better than that :) I'll provide code and details in
my review. For now, here's something to look at:
http://spirit.sourceforge.net/dl_more/gil/lion.png
Those were rendered using GIL backend renderer with AGG front
end rasterizer (sub-pixel anti-aliased). GIL is cool! So is
AGG, of course :-)
Regards,
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk