It's not a limitation of the module. Try "print $graph->as_text" and
you'll see that it's has nothing specific that turn of anti-aliasing.

Tested with sample from the module using:
t.pl > res.png
t_with_as_text.pl | dot -Tpng > res_via_dot.png

Both images are anti-aliased.



On Mon, Aug 25, 2008 at 10:25 PM, Aaron Hathaway
<[EMAIL PROTECTED]> wrote:
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
>> Ruslan Zakirov
>> Sent: Sunday, August 24, 2008 11:25 PM
>> To: Aaron Hathaway
>> Cc: [email protected]
>> Subject: Re: [rt-users] Graphviz anti-aliased output?
>>
>> On Mon, Aug 25, 2008 at 8:56 AM, Aaron Hathaway
>> <[EMAIL PROTECTED]> wrote:
>> > Message: 2
>> > Date: Sun, 24 Aug 2008 16:54:30 +1000
>> > From: [EMAIL PROTECTED] (Trent W. Buck)
>> > Subject: Re: [rt-users] Graphviz anti-aliased output?
>> > To: [EMAIL PROTECTED]
>> > Message-ID: <[EMAIL PROTECTED]>
>> > Content-Type: text/plain; charset=us-ascii
>> >
>> > "Aaron Hathaway" <[EMAIL PROTECTED]> writes:
>> >
>> >> I know the latest version of Graphviz can output lovely anti-aliased
>> >> graphs.  Is there an easy way to get RT to anti-alias its Graphviz
>> >> output?
>> >
>> >
>> > (Note: I have yet to look at RT's graphviz integration.)
>> >
>> > Perhaps an easy way would be to tell RT to use dot -Tsvg instead of
>> > -Tpng?  Then the web pages would include SVG and be rendered client-side
>> > (and thus be antialiased in Firefox, at least).
>> >
>> > OTOH, this seems to be antialiased already (with graphviz 2.20):
>> >
>> >     echo 'digraph { x -> y; }' | dot -Tpng | with-temp-file display
>> >
>> > so perhaps you just need to upgrade your Graphviz?
>> >
>> > I'm also running 2.2, and by default, it does output with anti-aliasing.
>> > But RT's implementation doesn't.
>> >
>> > I think this has to do with the perl module GraphViz, which handles
>> > integration with graphviz.  I'm not sure the module can take advantage of
>> > anti-aliasing--but I don't know.
>> This module generates a graph in dot format. May be we use some
>> properties that disable anti-aliasing. I did some googling, but havn't
>> found anything interesting.
>> --
>> Best regards, Ruslan.
>
> It's a limitation of the module.  I ran the test code from the module's 
> README:
>
>      use GraphViz;
>
>      my $g = GraphViz->new();
>
>      $g->add_node('London');
>      $g->add_node('Paris', label => 'City of\nlurve');
>      $g->add_node('New York');
>
>      $g->add_edge('London' => 'Paris');
>      $g->add_edge('London' => 'New York', label => 'Far');
>      $g->add_edge('Paris' => 'London');
>
>      print $g->as_png;
>
> It outputs an aliased PNG.  SVG output (i.e., as_svg) is displayed--as you'd 
> expect--with anti-aliasing.
>
> --Aaron
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



-- 
Best regards, Ruslan.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to