Main > Programming > Libraries >

Imager::Tutorial 0.54

Imager::Tutorial 0.54

Sponsored Links

Imager::Tutorial 0.54 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.83 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1100
Date added: 2006-10-27
Publisher: Tony Cook

Imager::Tutorial 0.54 description

Imager::Tutorial is an introduction to Imager.

Before you start

If you have the necessary knowledge, install the image format libraries you want Imager image file support for, and Imager itself, otherwise arrange to have it done.
You will also want some sort of image viewer tool, whether an image editor like Photoshop or the GIMP, or a web browser.

Hello Boxes! - A Simple Start

As with any perl program its useful to start with a #! line, and to enable strict mode:

#!/usr/bin/perl -w
# you might to use warnings; instead of the -w above
use strict;

These lines will be omitted in further examples.

As with any module, you need to load it:

use Imager;

Now create a image to draw on:

my $image = Imager->new(xsize => 100, ysize => 100);

and draw a couple of filled rectangles on it:

$image->box(xmin => 0, ymin => 0, xmax => 99, ymax => 99,
filled => 1, color => blue);
$image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79,
filled => 1, color => green);

Since the first box fills the whole image, it can be simplified to:

$image->box(filled => 1, color => blue);

and save it to a file:

$image->write(file=>tutorial1.ppm)
or die Cannot save tutorial1.ppm: , $image->errstr;

So our completed program is:

use Imager;

my $image = Imager->new(xsize => 100, ysize => 100);

$image->box(filled => 1, color => blue);
$image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79,
filled => 1, color => green);

$image->write(file=>tutorial1.ppm)
or die Cannot save tutorial1.ppm: , $image->errstr;

Imager::Tutorial 0.54 Screenshot

Advertisements

Imager::Tutorial 0.54 Keywords

Bookmark Imager::Tutorial 0.54

Hyperlink code:
Link for forum:

Imager::Tutorial 0.54 Copyright

WareSeeker periodically updates pricing and software information of Imager::Tutorial 0.54 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 Imager::Tutorial 0.54 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Imager::Color is a Perl module with color handling for Imager. Free Download
Imager::Filters is an entire image filtering operations. Free Download
Prima::tutorial is an introductory tutorial. Free Download
Imager script is a Perl extension for generating 24-bit images. Free Download
Imager::Fountain is a class for building fountain fills suitable for use by the fountain filter. Free Download
yagg::Tutorial is a Perl module that contains a tutorial for yagg. Free Download
Imager::Engines is a Perl module for programmable transformation operations. Free Download
Album::Tutorial is a Perl module on how to use the Album program. Free Download