Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    use GD;
    ...
    
    # Convert the image to PNG and print it on standard output
        print $im->png;
    
  2. or download this
    #!/usr/bin/perl 
     
    ...
    
      open(GRAPH,">graph1.jpg") || die "Cannot open graph1.jpg: $!\n";
      print GRAPH $graph->gd->jpeg(100);