Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Filling polygons: Imager vs GD

by tonyc (Friar)
on Oct 01, 2013 at 23:04 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1056553]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (None)
    As of 2024-05-23 16:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found