cvs: phpdoc /en/reference/imagick/imagick trimimage.xml
| From: | Mikko Koppanen | Date: | Wed, 11 Feb 2009 13:29:15 +0000 |
| Subject: | cvs: phpdoc /en/reference/imagick/imagick trimimage.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3194@lists.php.net to get a copy of this message | ||
mkoppanen Wed Feb 11 13:29:15 2009 UTC
Modified files:
/phpdoc/en/reference/imagick/imagick trimimage.xml
Log:
Better descriptions
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/imagick/imagick/trimimage.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/imagick/imagick/trimimage.xml
diff -u phpdoc/en/reference/imagick/imagick/trimimage.xml:1.9
phpdoc/en/reference/imagick/imagick/trimimage.xml:1.10
--- phpdoc/en/reference/imagick/imagick/trimimage.xml:1.9 Mon Apr 7 20:44:31 2008
+++ phpdoc/en/reference/imagick/imagick/trimimage.xml Wed Feb 11 13:29:15 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.imagick-trimimage">
<refnamediv>
<refname>Imagick::trimImage</refname>
@@ -12,9 +12,10 @@
<type>bool</type><methodname>Imagick::trimImage</methodname>
<methodparam><type>float</type><parameter>fuzz</parameter></methodparam>
</methodsynopsis>
- &warn.undocumented.func;
+
<para>
- Remove edges that are the background color from the image.
+ Remove edges that are the background color from the image.
+ This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or
newer.
</para>
</refsect1>
@@ -29,7 +30,8 @@
By default target must match a particular pixel color exactly.
However, in many cases two colors may differ by a small amount.
The fuzz member of image defines how much tolerance is acceptable
- to consider two colors as the same.
+ to consider two colors as the same. This parameter represents the variation
+ on the quantum range.
</para>
</listitem>
</varlistentry>
@@ -63,13 +65,13 @@
<![CDATA[
<?php
/* Create the object and read the image in */
-$im = new Imagick( "image.jpg" );
+$im = new Imagick("image.jpg");
/* Trim the image. */
-$im->trimImage( 0 );
+$im->trimImage(0);
/* Ouput the image */
-header( "Content-Type: image/" . $im->getImageFormat() );
+header("Content-Type: image/" . $im->getImageFormat());
echo $im;
?>
]]>
@@ -78,6 +80,16 @@
</para>
</refsect1>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>Imagick::getQuantumDepth</function></member>
+ <member><function>Imagick::getQuantumRange</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
</refentry>
<!-- Keep this comment at the end of the file