mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
d7fffae095
commit
e8111658d4
1 changed files with 10 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue