Home >Backend Development >PHP Tutorial >php 获取SWF动画截图示例代码_PHP

php 获取SWF动画截图示例代码_PHP

WBOY
WBOYOriginal
2016-06-01 11:57:05941browse

1.下载附件,并安装,方法看附件中的帮助
2.拷贝代码进合适位置,生成图片,怎么处理,自己看着办喽
复制代码 代码如下:
$oldswf = "/uploads/swf/test.swf";
$oldjpg = "/uploads/litpic/test.jpg";
$flash2jpeg = new COM("SunCN.Flash2Jpeg");
if ($flash2jpeg) {
$a = $flash2jpeg->Flash2Jpeg($oldswf, 150, 200, $oldjpg);
if ($a) {
$litpic = '/images/defaultpic.gif';
} else {
$litpic = $oldjpg;
}
} else {
$litpic = '/images/defaultpic.gif';
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn