Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Bitmap-Read-a-PPM-file/Perl/bitmap-read-a-ppm-file.pl
Normal file
14
Task/Bitmap-Read-a-PPM-file/Perl/bitmap-read-a-ppm-file.pl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#! /usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use Image::Imlib2;
|
||||
|
||||
my $img = Image::Imlib2->load("out0.ppm");
|
||||
|
||||
# let's do something with it now
|
||||
$img->set_color(255, 255, 255, 255);
|
||||
$img->draw_line(0,0, $img->width,$img->height);
|
||||
$img->image_set_format("png");
|
||||
$img->save("out1.png");
|
||||
|
||||
exit 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue