NAME Image::Imlib2 - Interface to the Imlib2 image library SYNOPSIS use Image::Imlib2; # create a new image my $image = Image::Imlib2->new(200, 200); # or load an image $image = Image::Imlib2->load("foo.png"); # Enable the alpha channel support $image->has_alpha(1); # set a colour (rgba, so this is transparent orange) $image->set_color(255, 127, 0, 127); # draw a rectangle $image->draw_rectangle(5
![Image::Imlib2](https://cdn-ak-scissors.b.st-hatena.com/image/square/c4a607b5430575638fd9a7f233e073d867af4bb7/height=288;version=1;width=512/https%3A%2F%2Fmetacpan.org%2Fstatic%2Fimages%2Fdots.png)