- class SWFEditor function replaceGIFData($image_id, $gifdata)
説明
SWF バイナリ中の画像を GIF で差し替えます。
引数
- int $image_id (SWF 内のコンテンツ毎にふられた ID)
- string $gifdata (GIF ファイルのデータ)
戻り値
- boolean $result (true:成功, false:失敗)
使用例
<?php
$swf = new SWFEditor();
$swf->input($swfdata);
$swf->replaceGIFData($image_id, $gifdata);
header('Content-type: application/x-shockwave-flash');
echo $swf->output();
備考
- 透過GIFにも対応しています。
- GIF アニメーションを渡した場合は一コマ目の画像を適用します。
参考
関連