mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Returns SWFFill
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@172549 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c58f007447
commit
497f0fcd41
1 changed files with 22 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/ming.xml, last change in rev 1.24 -->
|
||||
<refentry id="function.swfshape.addfill">
|
||||
<refnamediv>
|
||||
|
@ -9,28 +9,26 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>swfshape->addfill</methodname>
|
||||
<type>SWFFill</type><methodname>SWFShape->addFill</methodname>
|
||||
<methodparam><type>int</type><parameter>red</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>green</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>blue</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>a</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.experimental.func;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>swfshape->addfill</methodname>
|
||||
<methodparam><type>SWFbitmap</type><parameter>bitmap</parameter></methodparam>
|
||||
<type>SWFFill</type><methodname>SWFShape->addFill</methodname>
|
||||
<methodparam><type>SWFBitmap</type><parameter>bitmap</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.experimental.func;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>swfshape->addfill</methodname>
|
||||
<type>SWFFill</type><methodname>SWFShape->addFill</methodname>
|
||||
<methodparam><type>SWFGradient</type><parameter>gradient</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.experimental.func;
|
||||
<para>
|
||||
<function>swfshape->addfill</function> adds a solid fill to the shape's list
|
||||
of fill styles. <function>swfshape->addfill</function> accepts three different
|
||||
<function>SWFShape->addFill</function> adds a solid fill to the shape's list
|
||||
of fill styles. <function>SWFShape->addFill</function> accepts three different
|
||||
types of arguments.
|
||||
</para>
|
||||
<para>
|
||||
|
@ -38,35 +36,32 @@
|
|||
is a color (RGB mode). Last parameter <parameter>a</parameter> is optional.
|
||||
</para>
|
||||
<para>
|
||||
The <parameter>bitmap</parameter> argument is an <function>swfbitmap</function> object.
|
||||
The <parameter>bitmap</parameter> argument is an <function>SWFBitmap</function> object.
|
||||
The <parameter>flags</parameter> argument can be one
|
||||
of the following values : SWFFILL_CLIPPED_BITMAP or SWFFILL_TILED_BITMAP.
|
||||
Default is SWFFILL_TILED_BITMAP. I think.
|
||||
of the following values: SWFFILL_CLIPPED_BITMAP, SWFFILL_TILED_BITMAP,
|
||||
SWFFILL_LINEAR_GRADIENT or SWFFILL_RADIAL_GRADIENT. Default is
|
||||
SWFFILL_TILED_BITMAP for SWFBitmap and SWFFILL_LINEAR_GRADIENT for
|
||||
SWFGradient.
|
||||
</para>
|
||||
<para>
|
||||
The <parameter>gradient</parameter> argument is an <function>swfgradient</function>
|
||||
The <parameter>gradient</parameter> argument is an <function>SWFGradient</function>
|
||||
object. The flags argument can be one of the following values :
|
||||
SWFFILL_RADIAL_GRADIENT or SWFFILL_LINEAR_GRADIENT. Default is
|
||||
SWFFILL_LINEAR_GRADIENT. I'm sure about this one. Really.
|
||||
</para>
|
||||
<para>
|
||||
<function>swfshape->addfill</function> returns an <function>swffill</function>
|
||||
object for use with the <function>swfshape->setleftfill</function>
|
||||
and <function>swfshape->setrightfill</function> functions
|
||||
<function>SWFShape->addFill</function> returns an <function>SWFFill</function>
|
||||
object for use with the <function>SWFShape->setLeftFill</function>
|
||||
and <function>SWFShape->setRightFill</function> functions
|
||||
described below.
|
||||
</para>
|
||||
<simpara>
|
||||
See also
|
||||
<function>swfshape->setleftfill</function> and
|
||||
<function>swfshape->setrightfill</function>.
|
||||
</simpara>
|
||||
<para>
|
||||
This simple example will draw a frame on a bitmap. Ah, here's another buglet in
|
||||
the flash player- it doesn't seem to care about the second shape's bitmap's
|
||||
transformation in a morph. According to spec, the bitmap should stretch
|
||||
along with the shape in this example..
|
||||
<example>
|
||||
<title><function>swfshape->addfill</function> example</title>
|
||||
<title><function>SWFShape->addFill</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -120,6 +115,11 @@
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<simpara>
|
||||
See also
|
||||
<function>SWFShape->setLeftFill</function> and
|
||||
<function>SWFShape->setRightFill</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue