]> git.imager.perl.org - imager.git/blobdiff - samples/README
- added samples/align-string.pl
[imager.git] / samples / README
index df4eb097462d79d3e935d5ad4e6d1606bf4d2f4a..5f94c7f771c7265526efa4afd3655b14ccd2dd31 100644 (file)
@@ -58,3 +58,32 @@ samp-tags.cgi
   See the section "Parsing an image posted via CGI" in Imager::Cookbook
   for cautions and details on reading uploaded images.
 
+border.pl
+
+  Example of adding a border to an image.
+
+slant_text.pl
+
+  Example of drawing transformed text.
+
+  Draws slanted or rotated text to a new image and saves it to a file.
+
+  As part of this it demonstrates calculating the transformed bounding
+  box of the text.
+
+tk-photo.pl
+
+  Simple example of making a Tk::Photo object using Imager data.
+
+align-string.pl
+
+  Simple demonstration of the align_string() method.  Usage:
+
+   perl align-string.pl fontfile size outputfile text...
+
+  eg.
+
+   perl align-string.pl fontfiles/ImUgly.ttf 60 test.ppm .A.
+
+  This demonstrates how the various values of halign and valign
+  behave.