Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Filling polygons: Imager vs GD

by tonyc (Pilgrim)
on Oct 01, 2013 at 23:04 UTC ( #1056553=note: print w/replies, xml ) Need Help??

in reply to Filling polygons: Imager vs GD

Not that I expect it accounts for all of the speed differences, but Imager draws anti-aliased filled polygons, while GD doesn't.

Pre-calculating the 'white' with something like:

my $white = Imager::Color->new("white"); ... $img->polygon (points=>\@polygon, color=>$white);

may also help a little, though it's likely to drown in the worked needed to actually draw the polygons.

Imager has other inefficiencies in filling areas that probably make some difference too.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056553]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2017-03-28 05:43 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (327 votes). Check out past polls.