PHP Doku:: Define a bitmap - function.swf-definebitmap.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenShockwave FlashSWF Funktionenswf_definebitmap

Ein Service von Reinhard Neidl - Webprogrammierung.

SWF Funktionen

<<swf_closefile

swf_definefont>>

swf_definebitmap

(PHP 4)

swf_definebitmapDefine a bitmap

Description

void swf_definebitmap ( int $objid , string $image_name )

The swf_definebitmap() function defines a bitmap given a GIF, JPEG, RGB or FI image. The image will be converted into a Flash JPEG or Flash color map format.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
hotkey at hehe dot com
2.05.2001 19:32
Hi!
I'm currently developing a HTML2SWF php, and I had serious problems displaying images...

swf_definebitmap() does not seem to work for "just displaying" a picture, e.g.
--------
swf_definebitmap(1,"myfile.gif");
swf_placeobject(1,10);
--------
(The image won't show up as expected)

...BUT...

everything worX fine when filling a shape with a picture, e.g.:

---------
swf_definebitmap(1,"myfile.gif");
swf_startshape(2);
 swf_shapelinesolid(0.1,0.1,0.1,1,0.2);
 swf_shapefillbitmapclip(1);
 swf_shapearc(50,50,100,0,360);
swf_endshape(2);
swf_placeobject(2,10);
---------

Hope, I could help some guys out there!

regards
HotKey

P.S. php rulez!



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)