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

WBOY
Release: 2016-06-01 11:57:05
Original
903 people have browsed it

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';
}

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!