|
Boost : |
Subject: Re: [boost] Boost.Plot? - Scalable Vector Graphics
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-07-30 13:40:20
Paul, I have a gil extension using OpenCV to draw primitives into a
gil image. Without looking at your code. How easy is to get the max
coordinate which would serve as image dimensions? Do you have scaling
or other transformations implemented? Ahh, yes, what drawing
primitives are you using? Line segments only?
Questions over questions. I guess I should have a look at your code. ;-)
Christian
On Thu, Jul 30, 2009 at 1:14 PM, Paul A. Bristow<pbristow_at_[hidden]> wrote:
>> -----Original Message-----
>> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On
>> Behalf Of Christian Henning
>> Sent: 30 July 2009 16:28
>> To: boost_at_[hidden]
>> Subject: Re: [boost] Boost.Plot? - Scalable Vector Graphics
>>
>> Paul and all other,
>>
>> how complicated might it be to spit out a gil image from the plot
>> rather than a svg file? Is it possible to templatize svg_2d_plot to
>> 2d_plot< svg > and then 2d_plot< gil::image >. I'm sure it's possible
>> but how much work would it be? I could see myself writing the gil
>> portion.
>
> Would it be possible to use the SVG text from an ostream or an array of
> bytes to convert to gil_image?
>
> This might be much simpler to implement. All the functions are geared to
> outputting SVG commands and it would require a complete duplication of the
> exceedingly many functions.
>
> Another Booster pointed me to Qt Widgets as a renderer
>
> "
> QSvgWidget::QSvgWidget ( const QString & file, QWidget * parent = 0 )
>
> Constructs a new SVG display widget with the given parent and loads the
> contents of the specified file.
> "
>
> Seems promising - is there a similar svg to gil_image converter?
>
> But then I'm entirely ignorant of gil_images :-)
>
> Paul
>
> ---
> Paul A. Bristow
> Prizet Farmhouse
> Kendal, UK LA8 8AB
> +44 1539 561830, mobile +44 7714330204
> pbristow_at_[hidden]
>
>
>
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk