mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-26 13:58:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
64 lines
2.6 KiB
XML
64 lines
2.6 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.imagecopymergegray">
|
|
<refnamediv>
|
|
<refname>imagecopymergegray</refname>
|
|
<refpurpose>Copy and merge part of an image with gray scale</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>imagecopymergegray</methodname>
|
|
<methodparam><type>resource</type><parameter>dst_im</parameter></methodparam>
|
|
<methodparam><type>resource</type><parameter>src_im</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>dst_x</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>dst_y</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>src_x</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>src_y</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>src_w</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>src_h</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>pct</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>imagecopymergegray</function> copy a part of <parameter>src_im</parameter> onto
|
|
<parameter>dst_im</parameter> starting at the x,y coordinates
|
|
<parameter>src_x</parameter>, <parameter>src_y </parameter> with
|
|
a width of <parameter>src_w</parameter> and a height of
|
|
<parameter>src_h</parameter>. The portion defined will be copied
|
|
onto the x,y coordinates, <parameter>dst_x</parameter> and
|
|
<parameter>dst_y</parameter>.
|
|
The two images will be merged according to <parameter>pct</parameter>
|
|
which can range from 0 to 100. When <parameter>pct</parameter> = 0,
|
|
no action is taken, when 100 this function behaves identically
|
|
to <function>imagecopy</function>.
|
|
</para>
|
|
<para>
|
|
This function is identical to <function>imagecopymerge</function> except
|
|
that when merging it preservese the hue of the source by converting
|
|
the destination pixels to gray scale before the copy operation.
|
|
</para>
|
|
<note><para>This function was added in PHP 4.0.6</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
|
|
-->
|