Author: Tobias Schlitt
Date: 2007-02-19 11:31:08 +0100 (Mon, 19 Feb 2007)
New Revision: 4664

Log:
- Adding thumbnail filter interface.

Added:
   trunk/ImageConversion/src/interfaces/thumbnail.php

Added: trunk/ImageConversion/src/interfaces/thumbnail.php
===================================================================
--- trunk/ImageConversion/src/interfaces/thumbnail.php  2007-02-18 21:40:48 UTC 
(rev 4663)
+++ trunk/ImageConversion/src/interfaces/thumbnail.php  2007-02-19 10:31:08 UTC 
(rev 4664)
@@ -0,0 +1,44 @@
+<?php
+
+interface ezcImageThumbnailFilters
+{
+
+    /**
+     * Creates a thumbnail, and crops parts of the given image to fit the 
range best.
+     * This filter creates a thumbnail of the given image. The image is scaled
+     * down, keeping the original ratio and keeping the image larger as the
+     * given range, if necessary. Overhead for the target range is cropped from
+     * both sides equally.
+     * 
+     * @param int $width  Width of the thumbnail.
+     * @param int $height Height of the thumbnail.
+     */
+    public function croppedThumbnail( $width, $height );
+
+    /**
+     * Creates a thumbnail, and fills up the image to fit the given range.
+     * This filter creates a thumbnail of the given image. The image is scaled
+     * down, keeping the original ratio and scaling the image smaller as the
+     * given range, if necessary. Overhead for the target range is filled with 
the given
+     * color on both sides equally.
+     *
+     * The color is defined by the following array format (integer values 
0-255):
+     *
+     * <code>
+     * array( 
+     *      0 => <red value>,
+     *      1 => <green value>,
+     *      2 => <blue value>,
+     * );
+     * </code>
+     * 
+     * @param int $width  Width of the thumbnail.
+     * @param int $height Height of the thumbnail.
+     * @param array $color Fill color.
+     * @return void
+     */
+    public function filledThumbnail( $width, $height, $color = array() );
+
+}
+
+?>


Property changes on: trunk/ImageConversion/src/interfaces/thumbnail.php
___________________________________________________________________
Name: svn:eol-style
   + native

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to