]> git.imager.perl.org - imager.git/blobdiff - samples/README
prefer static first
[imager.git] / samples / README
index ff8ce48690ed7136b9b830622ff7dbebe13203eb..77f3886c0b96cb642bd885edb7d3103a23754fe4 100644 (file)
@@ -19,6 +19,11 @@ replace_color.pl
 
   http://www.perlmonks.org/?node_id=497355
 
+inline_replace_color.pl
+
+  Example using Inline::C and the Imager API to replace one color with
+  another in an image.
+
 interleave.pl
 
   Produce an interleaved image given the left and right images of a
@@ -74,3 +79,46 @@ slant_text.pl
 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.
+
+inline_capture2image.pl
+
+  Demonstrates using Inline and Imager's API to convert captured BGR
+  image data into an Imager image.
+
+flasher.pl
+
+  Animate an image fading down to a background color and back again.
+
+  Demonstrates setting an alpha channel with convert(), rubthrough(), 
+  and writing animated GIFs.
+
+gifscale.pl
+
+  Scales an animated GIF image, preserving GIF animation information
+  and adjusting the image screen positions to account for the scale
+  factor.
+
+quad_to_square.pl
+
+  Sample from Richard Fairhurst demonstrating the use of the transform2()
+  det() function.  Transforms an arbitrary quadrilateral in the input into
+  a square on the output.
+
+wiggle.pl
+
+  Produce an animated GIF that blends back and forth between the two
+  supplied images.  If the input images form a stereo pair the GIF can
+  be used for wiggle stereoscopy.