my @colors = $img->getpixel(x => 0, y => [ 0 .. 3 ], type => '8bit'); # ... $img->setpixel(x=>50, y=>70, color=>[ 255, 0, 255 ]);