cvs: phpdoc /en/reference/ming/functions swfbitmap.xml swfdisplayitem.multcolor.xml swfmovie.streammp3.xml swfshape.addfill.xml

From: Date: Wed, 22 Sep 2004 08:19:32 +0000
Subject: cvs: phpdoc /en/reference/ming/functions swfbitmap.xml swfdisplayitem.multcolor.xml swfmovie.streammp3.xml swfshape.addfill.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364210@lists.php.net to get a copy of this message
vrana Wed Sep 22 04:19:32 2004 EDT Modified files: /phpdoc/en/reference/ming/functions swfbitmap.xml swfdisplayitem.multcolor.xml swfmovie.streammp3.xml swfshape.addfill.xml Log: Parameters are not filenames but files themselves (bug #17214) http://cvs.php.net/diff.php/phpdoc/en/reference/ming/functions/swfbitmap.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/ming/functions/swfbitmap.xml diff -u phpdoc/en/reference/ming/functions/swfbitmap.xml:1.4 phpdoc/en/reference/ming/functions/swfbitmap.xml:1.5 --- phpdoc/en/reference/ming/functions/swfbitmap.xml:1.4 Fri Aug 13 12:12:05 2004 +++ phpdoc/en/reference/ming/functions/swfbitmap.xml Wed Sep 22 04:19:29 2004 @@ -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); http://cvs.php.net/diff.php/phpdoc/en/reference/ming/functions/swfdisplayitem.multcolor.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/ming/functions/swfdisplayitem.multcolor.xml diff -u phpdoc/en/reference/ming/functions/swfdisplayitem.multcolor.xml:1.5 phpdoc/en/reference/ming/functions/swfdisplayitem.multcolor.xml:1.6 --- phpdoc/en/reference/ming/functions/swfdisplayitem.multcolor.xml:1.5 Thu Aug 12 21:00:46 2004 +++ phpdoc/en/reference/ming/functions/swfdisplayitem.multcolor.xml Wed Sep 22 04:19:30 2004 @@ -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)); http://cvs.php.net/diff.php/phpdoc/en/reference/ming/functions/swfmovie.streammp3.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/ming/functions/swfmovie.streammp3.xml diff -u phpdoc/en/reference/ming/functions/swfmovie.streammp3.xml:1.4 phpdoc/en/reference/ming/functions/swfmovie.streammp3.xml:1.5 --- phpdoc/en/reference/ming/functions/swfmovie.streammp3.xml:1.4 Tue Jul 27 00:48:54 2004 +++ phpdoc/en/reference/ming/functions/swfmovie.streammp3.xml Wed Sep 22 04:19:30 2004 @@ -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 http://cvs.php.net/diff.php/phpdoc/en/reference/ming/functions/swfshape.addfill.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/ming/functions/swfshape.addfill.xml diff -u phpdoc/en/reference/ming/functions/swfshape.addfill.xml:1.4 phpdoc/en/reference/ming/functions/swfshape.addfill.xml:1.5 --- phpdoc/en/reference/ming/functions/swfshape.addfill.xml:1.4 Tue Jul 27 00:48:54 2004 +++ phpdoc/en/reference/ming/functions/swfshape.addfill.xml Wed Sep 22 04:19:30 2004 @@ -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();

« previous php.doc (#969364210) next »