php-doc-en/reference/image/functions/imagecopyresampled.xml
Hartmut Holzgraefe 5b9fc29465 revision tags added
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-17 06:45:35 +00:00

65 lines
2.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
<refentry id="function.imagecopyresampled">
<refnamediv>
<refname>imagecopyresampled</refname>
<refpurpose>Copy and resize part of an image with resampling</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>imagecopyresampled</methodname>
<methodparam><type>resource</type><parameter>dst_im</parameter></methodparam>
<methodparam><type>resource</type><parameter>src_im</parameter></methodparam>
<methodparam><type>int</type><parameter>dstX</parameter></methodparam>
<methodparam><type>int</type><parameter>dstY</parameter></methodparam>
<methodparam><type>int</type><parameter>srcX</parameter></methodparam>
<methodparam><type>int</type><parameter>srcY</parameter></methodparam>
<methodparam><type>int</type><parameter>dstW</parameter></methodparam>
<methodparam><type>int</type><parameter>dstH</parameter></methodparam>
<methodparam><type>int</type><parameter>srcW</parameter></methodparam>
<methodparam><type>int</type><parameter>srcH</parameter></methodparam>
</methodsynopsis>
<para>
<function>imagecopyresampled</function> copies a rectangular
portion of one image to another image, smoothly interpolating pixel
values so that, in particular, reducing the size of an image still
retains a great deal of clarity.
<parameter>Dst_im</parameter> is the destination image,
<parameter>src_im</parameter> is the source image identifier. If
the source and destination coordinates and width and heights
differ, appropriate stretching or shrinking of the image fragment
will be performed. The coordinates refer to the upper left
corner. This function can be used to copy regions within the
same image (if <parameter>dst_im</parameter> is the same as
<parameter>src_im</parameter>) but if the regions overlap the
results will be unpredictable.
</para>
<para>
See also <function>imagecopyresized</function>.
</para>
<note><para>This function was added in PHP 4.0.6 and requires GD 2.0.1 or later</para></note>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->