Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Image anti-aliasing using GD and Image::Magick

by giulienk (Curate)
on Dec 09, 2001 at 00:02 UTC ( [id://130451]=note: print w/replies, xml ) Need Help??


in reply to Re: Image anti-aliasing using GD and Image::Magick
in thread Image anti-aliasing using GD and Image::Magick

Thank you for your advice.
I think i can get good results creating a larger image and then scaling it down with something like this:
#this is the default example for GD::Graph3D use GD::Graph::bars3d; use Image::Magick; my @data = ( ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], [ 1203, 3500, 3973, 2859, 3012, 3423, 1230] ); my $graph = new GD::Graph::bars3d( 800, 600 ); #BIG image $graph->set( x_label => 'Day of the week', y_label => 'Number of hits', title => 'Daily Summary of Web Site', ); my $gd = $graph->plot( \@data ); #here the interesting part my $image=Image::Magick->new(magick=>'png'); $image->BlobToImage($gd->png); $image->Resize(width=>400, height=>300); #small and anti-aliased one $image->Write('graph3d.png');

gkinueliileunikg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found