Image_Tools
[ class tree: Image_Tools ] [ index: Image_Tools ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
  3. // $Id: index.php,v 1.1 2008/05/26 03:03:26 firman Exp $
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7.  <head>
  8.   <title>Demo of PEAR::Image_Tools</title>
  9.  </head>
  10.  
  11. <body>
  12.  <p>This is demo of <a href="http://pear.php.net/package/Image_Tools">PEAR::Image_Tools</a></p>
  13.  <hr />
  14.  <p>Available tool/driver:
  15.   <ul>
  16.    <li><a href="#blend">Blend</a> (available since Release 1.0.0RC1)</li>
  17.    <li><a href="#border">Border</a></li>
  18.    <li><a href="#marquee">Marquee</a></li>
  19.    <li><a href="#mask">Mask</a></li>
  20.    <li><a href="#swap">Swap</a></li>
  21.    <li><a href="#thumbnail">Thumbnail</a></li>
  22.    <li><a href="#watermark">Watermark</a> (available since Release 1.0.0RC1)</li>
  23.   </ul>
  24.  </p>
  25.  <p>Source images</p>
  26.  <p>
  27.   <img src="images/3dgirl.jpg" alt="3D girl" />
  28.   <img src="images/masker.png" alt="Masker" />
  29.   <img src="images/zebra.jpg" alt="Zebra" />
  30.   <img src="images/watermark.png" alt="Watermark" />
  31.   <img src="images/blending.png" alt="Blending" />
  32.  </p>
  33.  <h2><a id="blend">Blend</a></h2>
  34.  <p>Apply the blending mode between two images.</p>
  35.  <p>
  36.   <img src="blend.php?mode=normal" alt="normal" />
  37.   <img src="blend.php?mode=multiply" alt="multiply" />
  38.   <img src="blend.php?mode=screen" alt="screen" />
  39.   <img src="blend.php?mode=darken" alt="darken" />
  40.   <img src="blend.php?mode=lighten" alt="lighten" />
  41.   <img src="blend.php?mode=difference" alt="difference" />
  42.   <img src="blend.php?mode=exclusion" alt="exclusion" />
  43.   <img src="blend.php?mode=negation" alt="negation" />
  44.   <img src="blend.php?mode=interpolation" alt="interpolation" />
  45.   <img src="blend.php?mode=stamp" alt="stamp" />
  46.   <img src="blend.php?mode=softlight" alt="softlight" />
  47.   <img src="blend.php?mode=hardlight" alt="hardlight" />
  48.   <img src="blend.php?mode=overlay" alt="overlay" />
  49.   <img src="blend.php?mode=colordodge" alt="colordodge" />
  50.   <img src="blend.php?mode=colorburn" alt="colorburn" />
  51.   <img src="blend.php?mode=softdodge" alt="softdodge" />
  52.   <img src="blend.php?mode=softburn" alt="softburn" />
  53.   <img src="blend.php?mode=additive" alt="additive" />
  54.   <img src="blend.php?mode=subtractive" alt="subtractive" />
  55.   <img src="blend.php?mode=reflect" alt="reflect" />
  56.   <img src="blend.php?mode=glow" alt="glow" />
  57.   <img src="blend.php?mode=freeze" alt="freeze" />
  58.   <img src="blend.php?mode=heat" alt="heat" />
  59.   <img src="blend.php?mode=logicXOR" alt="logicxor" />
  60.   <img src="blend.php?mode=logicAND" alt="logicand" />
  61.   <img src="blend.php?mode=logicOR" alt="logicor" />
  62.  </p>
  63.  <h2><a id="border">Border</a></h2>
  64.  <p>Border creation, there are rounded rectangle, bevel and line styles.</p>
  65.  <p>
  66.   <img src="border.php?style=rounded" alt="rounded" />
  67.   <img src="border.php?style=bevel" alt="bevel" />
  68.   <img src="border.php?style=line" alt="line" />
  69.  </p>
  70.  <h2><a id="marquee">Marquee</a></h2>
  71.  <p><img src="marquee.php" alt="marquee" /></p>
  72.  <h2><a id="mask">Mask</a></h2>
  73.  <p>Use to image to create a masking and attach it into destination image.</p>
  74.  <p>
  75.   <img src="mask.php" alt="mask" />
  76.  </p>
  77.  <h2><a id="swap">Swap</a></h2>
  78.  <p>Swap the color between R (Red), G (Green), B (Blue) into RBG, BGR, BRG, GRB or GBR.</p>
  79.  <p>
  80.   <img src="swap.php?format=RBG" alt="RBG" />
  81.   <img src="swap.php?format=BGR" alt="BGR" />
  82.   <img src="swap.php?format=BRG" alt="BRG" />
  83.   <img src="swap.php?format=GRB" alt="GRB" />
  84.   <img src="swap.php?format=GBR" alt="GBR" />
  85.  </p>
  86.  <h2><a id="thumbnail">Thumbnail</a></h2>
  87.  <p>Create a thumbnail of image. Support scale maximum, scale minimun and crop method, also
  88.  able to set the horizontal alignment and vertical alignment direction.</p>
  89.  <p>
  90.   <img src="thumbnail.php" alt="scalemax" />
  91.   <img src="thumbnail.php?method=scale_min" alt="scalemin" />
  92.   <img src="thumbnail.php?method=crop" alt="crop" />
  93.   <img src="thumbnail.php?method=crop&amp;halign=left" alt="left" />
  94.   <img src="thumbnail.php?method=crop&amp;halign=right" alt="right" />
  95.   <img src="thumbnail.php?method=crop&amp;valign=top" alt="top" />
  96.   <img src="thumbnail.php?method=crop&amp;valign=bottom" alt="bottom" />
  97.  </p>
  98.  <h2><a id="watermark">Watermark</a></h2>
  99.  <p>Add a visible watermark to the image.</p>
  100.  <p>
  101.   <img src="watermark.php" alt="watermark" />
  102.  </p>
  103. </body>
  104. </html>

Documentation generated on Mon, 11 Mar 2019 15:22:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.