]> git.imager.perl.org - imager.git/blob - lib/Imager/Handy.pod
the rubthrough() method now supports destination images with an alpha
[imager.git] / lib / Imager / Handy.pod
1 =head1 NAME
2
3 Imager::Handy - simple access to common functions
4
5 =head1 SYNOPSIS
6
7   use Imager ':handy';
8   my $color = NC(255, 0, 0);
9   my $font = NF(1.0, 0, 0);
10
11 =head1 DESCRIPTION
12
13 If you use Imager with the C<:handy> import tag, it will export a
14 number of functions that can shorter your code.
15
16 =over
17
18 =item NC
19
20 =item newcolor
21
22 =item newcolour
23
24 Create a new Imager::Color object, supplying any parameters to the
25 new() method.
26
27   my $color = NC('red');
28
29 =item NF
30
31 =item newfont
32
33 Create a new Imager::Font object, supplying any parameters to the
34 new() method.
35
36   my $font = NF(file => 'foo.ttf');
37
38 =back
39
40 =head1 BUGS
41
42 NC() can be mostly replaced by supplying the color name or other
43 description directly to the drawing method.
44
45 =head1 AUTHOR
46
47 Tony Cook <tony@imager.perl.org>
48
49 =cut
50