發新話題

[分享] 《PHP》『Shockwave Flash函式庫』

『Shockwave Flash函式庫』swf_shapefillsolid 設定目前填滿的樣式為指定的顏色

swf_shapefillsolid ---  設定目前填滿的樣式為指定的顏色

語法 : void swf_shapefillsolid (float r, float g, float b, float a)

說明 :

swf_shapefillsolid( )設定目前填滿的樣式,設定填滿的顏色為參數 rgba值。


TOP

『Shockwave Flash函式庫』swf_shapefillbitmapclip 設定目前填滿到省略一部份的方式

swf_shapefillbitmapclip ---  設定目前填滿到省略一部份的位圖的方式

語法 : void swf_shapefillbitmapclip (int bitmapid)

說明 :

設定填滿到省略一部份的(clipped)位圖(bitmap),空的空間將會被給予的參數bitmapid填滿。

TOP

『Shockwave Flash函式庫』swf_shapefillbitmaptile 設定目前填滿到位圖地磚的方式

swf_shapefillbitmapclip ---  設定目前填滿到位圖地磚的方式

語法 : void swf_shapefillbitmaptile (int bitmapid)

說明 :

設定填滿到位圖(bitmap)地磚(tile),空的空間將會被給予的參數bitmapid填滿。

TOP

《PHP》『Shockwave Flash函式庫』swf_shapemoveto 移動目前的位置

swf_shapemoveto ---  移動目前的位置

語法 : void swf_shapemoveto (float x, float y)

說明 :

swf_shapemoveto( )移動目前的位置到 x 坐標為參數 x,y 坐標為參數 y。

TOP

《PHP》『Shockwave Flash函式庫』swf_shapelineto 繪製一線段

swf_shapelineto ---  繪製一線段

語法 : void swf_shapelineto (float x, float y)

說明 :

swf_shapelineto( )畫一線段到 x 坐標為參數 x,y 坐標為參數 y。目前的位置會設定成 x,y參數的位標。

TOP

《PHP》『Shockwave Flash函式庫』swf_shapecurveto 繪製二點間的曲線

swf_shapecurveto ---  繪製二點間的曲線

語法 : void swf_shapecurveto (float x1, float y1, float x2, float y2)

說明 :

swf_shapecurveto( )從 x 坐標為參數 x1,y 坐標為參數 y1,到 x 坐標為參數 x2,y 坐標為參數 y2,畫一曲線。目前的位置會設定成 x2 , y2參數的位標。

TOP

《PHP》『Shockwave Flash函式庫』swf_shapecurveto3 繪製三次方的曲線

swf_shapecurveto3 ---  繪製三次方的曲線

語法 : void swf_shapecurveto3 (float x1, float y1, float x2, float y2, float x3, float y3)

說明 :

swf_shapecurveto3( )使用參數 x1,y1和參數 x2,y2為控制曲線的點與參數 x3,y3為結束的點,來畫一個三次方(cubic)的曲線。目前的位置會設定成 x3 , y3參數的位標。

TOP

《PHP》『Shockwave Flash函式庫』swf_shapearc 畫一圓弧

swf_shapearc ---  畫一圓弧

語法 : void swf_shapearc (float x, float y, float r, float ang1, float ang2)

說明 :

swf_shapearc( )從參數ang1角度A到參數ang2角度B,畫一圓弧,參數 x,y 表示圓心的坐標,參數 r 表示圓的半徑。

TOP

《PHP》『Shockwave Flash函式庫』swf_endshape 結束目前形狀的定義

swf_endshape ---  結束目前形狀的定義

語法 : void swf_endshape (void);

說明 :

swf_endshape( )結束目前形狀的定義。

TOP

《PHP》『Shockwave Flash函式庫』swf_definefont --- 定義一個字體

swf_definefont ---  定義一個字體

語法 : void swf_definefont (int fontid, string fontname)

說明 :

swf_definefont( )定義參數fontname的字體並且給予它參數 fontid所指的 id。它會設定參數 fontname為目前的字體。

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。