downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

swf_definefont> <swf_closefile
[edit] Last updated: Fri, 25 May 2012

view this page in

swf_definebitmap

(PHP 4)

swf_definebitmapビットマップを定義する

説明

void swf_definebitmap ( int $objid , string $image_name )

関数 swf_definebitmap() は、 指定したイメージのビットマップを定義します。

パラメータ

objid

SWF オブジェクト ID。

image_name

GIF、JPEG、RGB あるいは FI 形式のイメージ。 このイメージは Flash JPEG または Flash カラーマップフォーマットに変換されます。

返り値

値を返しません。



add a note add a note User Contributed Notes swf_definebitmap
hotkey at hehe dot com 02-May-2001 10: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!

 
show source | credits | stats | sitemap | contact | advertising | mirror sites