Help for this page

Select Code to Download


  1. or download this
    # untested
    my $im = Imager->new(xsize=>$width, ysize=>$height);
    ...
      $im->setscanline(y=>$y, pixels => 
          substr($nfr, $y * per_line, $per_line));
    }
    
  2. or download this
    use Imager 0.48;
    # this assumes you've created an image of the right 
    ...
      myfree(line_buf);
    }
    EOS