Mercurial > hg > extraction-interface
diff _xampp/test/xampp_ming/bitmaps.php @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/_xampp/test/xampp_ming/bitmaps.php Mon Jan 19 17:13:49 2015 +0100 @@ -0,0 +1,31 @@ +<?php +Ming_setScale(20.0); +ming_useswfversion(7); +$movie=new SWFMovie(); +$movie->setRate(31); +$movie->setDimension(400,300); +$movie->setBackground(0xCC,0xCC,0xCC); + + +$filesrc1="jpg.jpg"; +$filesrc2="png.png"; +$filesrc3="gif.gif"; + +$filecontents1=file_get_contents($filesrc1); +$img = new SWFBitmap($filecontents1); +$f1=$movie->add($img); +$f1->moveto(90,50); + +$filecontents2=file_get_contents($filesrc2); +$img = new SWFBitmap($filecontents2); +$f1=$movie->add($img); +$f1->moveto(10,10); + +$filecontents3=file_get_contents($filesrc3); +$img = new SWFBitmap($filecontents3); +$f1=$movie->add($img); +$f1->moveto(170,80); + +header('Content-Type: application/x-shockwave-flash'); +$movie->output(0); +?>