1Template::Plugin::GD::TUesxetr::CAolnitgrni(b3u)ted PerlTeDmopcluamteen:t:aPtliuognin::GD::Text::Align(3)
2
3
4

NAME

6       Template::Plugin::GD::Text::Align - Draw aligned strings in GD images
7

SYNOPSIS

9           [% USE align = GD.Text.Align(gd_image); %]
10

EXAMPLES

12           [% FILTER null;
13               USE im  = GD.Image(100,100);
14               USE gdc = GD.Constants;
15               # allocate some colors
16               black = im.colorAllocate(0,   0, 0);
17               red   = im.colorAllocate(255,0,  0);
18               blue  = im.colorAllocate(0,  0,  255);
19               # Draw a blue oval
20               im.arc(50,50,95,75,0,360,blue);
21
22               USE a = GD.Text.Align(im);
23               a.set_font(gdc.gdLargeFont);
24               a.set_text("Hello");
25               a.set(colour => red, halign => "center");
26               a.draw(50,70,0);
27
28               # Output image in PNG format
29               im.png ⎪ stdout(1);
30              END;
31           -%]
32

DESCRIPTION

34       The GD.Text.Align plugin provides an interface to the GD::Text::Align
35       module. It allows text to be drawn in GD images with various alignments
36       and orientations.
37
38       See GD::Text::Align for more details. See Template::Plug‐
39       in::GD::Text::Wrap for a plugin that allow you to render wrapped text
40       in GD images.
41

AUTHOR

43       Thomas Boutell wrote the GD graphics library.
44
45       Lincoln D. Stein wrote the Perl GD modules that interface to it and
46       Martien Verbruggen wrote the GD::Text module.
47
48       Craig Barratt <craig@arraycomm.com> wrote the original GD plugins for
49       the Template Toolkit (2001).
50
51       Andy Wardley <abw@cpan.org> extracted them from the TT core into a sep‐
52       arate distribution for TT version 2.15.
53
54       These modules are looking for a new maintainer.  Please contact Andy
55       Wardley if you are willing to help out.
56
58       Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy Ward‐
59       ley <abw@cpan.org>.
60
61       GD::Text is copyright 1999 Martien Verbruggen.
62
63       This module is free software; you can redistribute it and/or modify it
64       under the same terms as Perl itself.
65

SEE ALSO

67       Template::Plugin::GD, Template::Plugin::GD::Text, Template::Plug‐
68       in::GD::Text::Wrap, GD
69
70
71
72perl v5.8.8                       2006-02-0T3emplate::Plugin::GD::Text::Align(3)
Impressum