Re: use perl to draw Venn Diagram
- From: Joost Diepenmaat <joost@xxxxxxxxx>
- Date: Mon, 28 Apr 2008 17:08:46 +0200
"Ela" <ela@xxxxxxxxxx> writes:
Thanks a lot, Gunnar Hjalmarsson. But the doc and google search don't tell
me how to use gdstyled and gdbrushed to draw a circle with a dashed/dotted
line.
The following is copied directly from the getStyle section of the GD
docs at <http://search.cpan.org/~lds/GD-2.39/GD.pm>:
# Set a style consisting of 4 pixels of yellow,
# 4 pixels of blue, and a 2 pixel gap
$myImage->setStyle($yellow,$yellow,$yellow,$yellow,
$blue,$blue,$blue,$blue,
gdTransparent,gdTransparent);
$myImage->arc(50,50,25,25,0,360,gdStyled);
You could probably also use brushes instead. Anyway all the
information is really there in the docs. If you're unable to create a
working script from that, you may want to post at least what you've
got now and what you're having difficulty with *exactly*. Just
claiming GD doesn't do what you want when it clearly does and even
provide examples in the docs isn't helping.
Take some time to read the full manpage linked above, it's not that
big and you should be able to figure it out yourself.
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
.
- Follow-Ups:
- Re: use perl to draw Venn Diagram
- From: Ela
- Re: use perl to draw Venn Diagram
- References:
- use perl to draw Venn Diagram
- From: Ela
- Re: use perl to draw Venn Diagram
- From: Gunnar Hjalmarsson
- Re: use perl to draw Venn Diagram
- From: Ela
- Re: use perl to draw Venn Diagram
- From: Gunnar Hjalmarsson
- Re: use perl to draw Venn Diagram
- From: Ela
- use perl to draw Venn Diagram
- Prev by Date: Re: use perl to draw Venn Diagram
- Next by Date: Re: WWW::Mechanize doesn't always follow_link(text
- Previous by thread: Re: use perl to draw Venn Diagram
- Next by thread: Re: use perl to draw Venn Diagram
- Index(es):
Relevant Pages
|
|