1Template::Plugin::GD::CUosnesrtaCnotnst(r3i)buted Perl DToecmupmleanttea:t:iPolnugin::GD::Constants(3)
2
3
4
6 Template::Plugin::GD::Constants - Interface to GD module constants
7
9 [% USE gdc = GD.Constants %]
10
11 # --> the constants gdc.gdBrushed, gdc.gdSmallFont, gdc.GD_CMP_IMAGE
12 # are now available
13
15 [% FILTER null;
16 USE gdc = GD.Constants;
17 USE im = GD.Image(200,100);
18 black = im.colorAllocate(0 ,0, 0);
19 red = im.colorAllocate(255,0, 0);
20 r = im.string(gdc.gdLargeFont, 10, 10, "Large Red Text", red);
21 im.png ⎪ stdout(1);
22 END;
23 -%]
24
26 The GD.Constants plugin provides access to the various GD module's con‐
27 stants (such as gdBrushed, gdSmallFont, gdTransparent, GD_CMP_IMAGE
28 etc). When GD.pm is used in perl it exports various contstants into
29 the caller's namespace. This plugin makes those exported constants
30 available as template variables.
31
32 See Template::Plugin::GD::Image and GD for further examples and
33 details.
34
36 Thomas Boutell wrote the GD graphics library.
37
38 Lincoln D. Stein wrote the Perl GD modules that interface to it.
39
40 Craig Barratt <craig@arraycomm.com> wrote the original GD plugins for
41 the Template Toolkit (2001).
42
43 Andy Wardley <abw@cpan.org> extracted them from the TT core into a sep‐
44 arate distribution for TT version 2.15.
45
47 Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy Ward‐
48 ley <abw@cpan.org>.
49
50 The GD.pm interface is copyright 1995-2000, Lincoln D. Stein.
51
52 This module is free software; you can redistribute it and/or modify it
53 under the same terms as Perl itself.
54
56 Template::Plugin::GD, Template::Plugin::GD::Image, GD
57
58
59
60perl v5.8.8 2006-02-03Template::Plugin::GD::Constants(3)