imagecolortransparent: explain how the transparent color works, based on user note

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65783 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
jim winstead 2001-12-20 22:05:04 +00:00
parent d7fffae095
commit e8111658d4

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.71 $ -->
<!-- $Revision: 1.72 $ -->
<reference id="ref.image">
<title>Image functions</title>
<titleabbrev>Image</titleabbrev>
@ -893,11 +893,19 @@ ImageColorDeAllocate($im, $white);
<para>
<function>ImageColorTransparent</function> sets the transparent
color in the <parameter>im</parameter> image to
<parameter>col</parameter>. <parameter>Im</parameter> is the
<parameter>col</parameter>. <parameter>im</parameter> is the
image identifier returned by <function>ImageCreate</function> and
<parameter>col</parameter> is a color identifier returned by
<function>ImageColorAllocate</function>.
</para>
<note>
<para>
The transparent color is a property of the image, transparency is not a
property of the color. Once you have a set a color to be the transparent
color, any regions of the image in that color that were drawn previously
will be transparent.
</para>
</note>
<para>
The identifier of the new (or current, if none is specified)
transparent color is returned.