Help for this page

Select Code to Download


  1. or download this
    my ($sample) = $image->getsamples(x => $x, y => $y, width => 1);
    
  2. or download this
    for my $y ( 0 .. $image->getheight() - 1 ) {
      for my $sample ($image->getsamples(y => $y)) {
        # do something with the sample
      }
    }