mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Parameters are not filenames but files themselves (bug #17214)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168960 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
22ae3f48d8
commit
55bca0bf33
4 changed files with 19 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/ming.xml, last change in rev 1.24 -->
|
||||
<refentry id="function.swfbitmap">
|
||||
<refnamediv>
|
||||
|
@ -10,15 +10,17 @@
|
|||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>swfbitmap</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>alphafilename</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>file</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>mixed</type><parameter>alphafile</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.experimental.func;
|
||||
<para>
|
||||
<function>swfbitmap</function> creates a new SWFBitmap object from
|
||||
the Jpeg or DBL file named <parameter>filename</parameter>.
|
||||
<parameter>alphafilename</parameter> indicates a MSK file to
|
||||
the Jpeg or DBL file in <parameter>file</parameter>.
|
||||
<parameter>alphafile</parameter> is a MSK file to
|
||||
be used as an alpha mask for a Jpeg image.
|
||||
Both parameters can be <function>fopen</function> resources or binary
|
||||
strings.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
|
@ -41,7 +43,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$s = new SWFShape();
|
||||
$f = $s->addFill(new SWFBitmap("png.dbl"));
|
||||
$f = $s->addFill(new SWFBitmap(file_get_contents("png.dbl")));
|
||||
$s->setRightFill($f);
|
||||
|
||||
$s->drawLine(32, 0);
|
||||
|
@ -71,7 +73,7 @@
|
|||
$s = new SWFShape();
|
||||
|
||||
// .msk file generated with "gif2mask" utility
|
||||
$f = $s->addFill(new SWFBitmap("alphafill.jpg", "alphafill.msk"));
|
||||
$f = $s->addFill(new SWFBitmap(file_get_contents("alphafill.jpg"), file_get_contents("alphafill.msk")));
|
||||
$s->setRightFill($f);
|
||||
|
||||
$s->drawLine(640, 0);
|
||||
|
|
|
@ -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.swfdisplayitem.multcolor">
|
||||
<refnamediv>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$b = new SWFBitmap("backyard.jpg");
|
||||
$b = new SWFBitmap(file_get_contents("backyard.jpg"));
|
||||
// note use your own picture :-)
|
||||
$s = new SWFShape();
|
||||
$s->setRightFill($s->addFill($b));
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/ming.xml, last change in rev 1.24 -->
|
||||
<refentry id="function.swfmovie.streammp3">
|
||||
<refnamediv>
|
||||
|
@ -10,15 +10,17 @@
|
|||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>swfmovie->streammp3</methodname>
|
||||
<methodparam><type>string</type><parameter>mp3FileName</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>mp3File</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.experimental.func;
|
||||
<para>
|
||||
<function>swfmovie->streammp3</function> streams the mp3 file
|
||||
<parameter>mp3FileName</parameter>. Not very robust in dealing with
|
||||
<parameter>mp3File</parameter>. Not very robust in dealing with
|
||||
oddities (can skip over an initial ID3 tag, but that's about it).
|
||||
Like <function>swfshape->addjpegfill</function>, this isn't a stable function- we'll
|
||||
probably need to make a separate SWFSound object to contain sound types.
|
||||
Parameter <parameter>mp3File</parameter> can be a
|
||||
<function>fopen</function> resource or a binary string.
|
||||
</para>
|
||||
<para>
|
||||
Note that the movie isn't smart enough to put enough frames in to contain
|
||||
|
@ -35,7 +37,7 @@
|
|||
<?php
|
||||
$m = new SWFMovie();
|
||||
$m->setRate(12.0);
|
||||
$m->streamMp3("distortobass.mp3");
|
||||
$m->streamMp3(file_get_contents("distortobass.mp3")));
|
||||
// use your own MP3
|
||||
|
||||
// 11.85 seconds at 12.0 fps = 142 frames
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/ming.xml, last change in rev 1.24 -->
|
||||
<refentry id="function.swfshape.addfill">
|
||||
<refnamediv>
|
||||
|
@ -73,7 +73,7 @@
|
|||
|
||||
$p = new SWFMorph();
|
||||
|
||||
$b = new SWFBitmap("alphafill.jpg");
|
||||
$b = new SWFBitmap(file_get_contents("alphafill.jpg"));
|
||||
// use your own bitmap
|
||||
$width = $b->getWidth();
|
||||
$height = $b->getHeight();
|
||||
|
|
Loading…
Reference in a new issue