Image::Imlib2 1.13
Sponsored Links
Image::Imlib2 1.13 Ranking & Summary
File size:
0.026 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
812
Date added:
2007-08-14
Publisher:
Leon Brocard
Image::Imlib2 1.13 description
Image::Imlib2 is a Perl 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(50, 50, 50, 50);
# draw a filled rectangle
$image->fill_rectangle(150, 50, 50, 50);
# draw a line
$image->draw_line(0, 0, 200, 50);
# set quality before saving
$image->set_quality(50);
# save out
$image->save(out.png);
# create a polygon
my $poly = Image::Imlib2::Polygon->new();
# add some points
$poly->add_point(0, 0);
$poly->add_point(100, 0);
$poly->add_point(100, 100);
$poly->add_point(0, 100);
# fill the polygon
$poly->fill();
# draw it closed on image
$image->draw_polygon($poly, 1);
# create a color range
my $cr = Image::Imlib2::ColorRange->new();
# add a color
my ($distance, $red, $green, $blue, $alpha) = (15, 200, 100, 50, 20);
$cr->add_color($distance, $red, $green, $blue, $alpha);
# draw it
my($x, $y, $width, $height, $angle) = (20, 30, 200, 200, 1);
$image->fill_color_range_rectangle($cr, $x, $y,
$width, $height, $angle);
Image::Imlib2 is a Perl port of Imlib2, a graphics library that does image file loading and saving as well as manipulation, arbitrary polygon support, etc. It does ALL of these operations FAST. It allows you to create colour images using a large number of graphics primitives, and output the images in a range of formats.
Image::Imlib2::Polygon and Image::Imlib2::ColorRange are described following Image::Imlib2 but may be referenced before their description.
Note that this is an early version of my attempt at a Perl interface to Imlib2. Currently, the API is just to test things out. Not everything is supported, but a great deal of functionality already exists. If you think the API can be tweaked to be a bit more intuitive, drop me a line!
Note that a development version of Imlib2 must be installed before installing this module.
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(50, 50, 50, 50);
# draw a filled rectangle
$image->fill_rectangle(150, 50, 50, 50);
# draw a line
$image->draw_line(0, 0, 200, 50);
# set quality before saving
$image->set_quality(50);
# save out
$image->save(out.png);
# create a polygon
my $poly = Image::Imlib2::Polygon->new();
# add some points
$poly->add_point(0, 0);
$poly->add_point(100, 0);
$poly->add_point(100, 100);
$poly->add_point(0, 100);
# fill the polygon
$poly->fill();
# draw it closed on image
$image->draw_polygon($poly, 1);
# create a color range
my $cr = Image::Imlib2::ColorRange->new();
# add a color
my ($distance, $red, $green, $blue, $alpha) = (15, 200, 100, 50, 20);
$cr->add_color($distance, $red, $green, $blue, $alpha);
# draw it
my($x, $y, $width, $height, $angle) = (20, 30, 200, 200, 1);
$image->fill_color_range_rectangle($cr, $x, $y,
$width, $height, $angle);
Image::Imlib2 is a Perl port of Imlib2, a graphics library that does image file loading and saving as well as manipulation, arbitrary polygon support, etc. It does ALL of these operations FAST. It allows you to create colour images using a large number of graphics primitives, and output the images in a range of formats.
Image::Imlib2::Polygon and Image::Imlib2::ColorRange are described following Image::Imlib2 but may be referenced before their description.
Note that this is an early version of my attempt at a Perl interface to Imlib2. Currently, the API is just to test things out. Not everything is supported, but a great deal of functionality already exists. If you think the API can be tweaked to be a bit more intuitive, drop me a line!
Note that a development version of Imlib2 must be installed before installing this module.
Image::Imlib2 1.13 Screenshot
Image::Imlib2 1.13 Keywords
Imlib2 1.13
Perl Interface
interface to
image library
50
image
draw
0
Imlib2
200
Image::Imlib2
ImageImlib2
Image::Imlib2 1.13
Libraries
Programming
Bookmark Image::Imlib2 1.13
Image::Imlib2 1.13 Copyright
WareSeeker periodically updates pricing and software information of Image::Imlib2 1.13 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Image::Imlib2 1.13 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Image::BMP is a bitmap parser/viewer. Free Download
Imlib2 is a graphic library for file loading, saving, rendering, and manipulation. Free Download
iCam2 is a webcam program for X11 or the console. Free Download
Image Viewer is a tool for viewing, converting, grabbing, and printing images. Free Download
Giblib is a utility library Free Download
xMule is an easy to use fork of the popular eMule client Free Download
Imager::Tutorial is an introduction to Imager. Free Download
Martini is a powerful file manager. Free Download
Latest Software
Popular Software
Favourite Software