Mercurial > hg > extraction-interface
comparison _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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 <?php | |
2 Ming_setScale(20.0); | |
3 ming_useswfversion(7); | |
4 $movie=new SWFMovie(); | |
5 $movie->setRate(31); | |
6 $movie->setDimension(400,300); | |
7 $movie->setBackground(0xCC,0xCC,0xCC); | |
8 | |
9 | |
10 $filesrc1="jpg.jpg"; | |
11 $filesrc2="png.png"; | |
12 $filesrc3="gif.gif"; | |
13 | |
14 $filecontents1=file_get_contents($filesrc1); | |
15 $img = new SWFBitmap($filecontents1); | |
16 $f1=$movie->add($img); | |
17 $f1->moveto(90,50); | |
18 | |
19 $filecontents2=file_get_contents($filesrc2); | |
20 $img = new SWFBitmap($filecontents2); | |
21 $f1=$movie->add($img); | |
22 $f1->moveto(10,10); | |
23 | |
24 $filecontents3=file_get_contents($filesrc3); | |
25 $img = new SWFBitmap($filecontents3); | |
26 $f1=$movie->add($img); | |
27 $f1->moveto(170,80); | |
28 | |
29 header('Content-Type: application/x-shockwave-flash'); | |
30 $movie->output(0); | |
31 ?> |