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

php 获取SWF动画截图示例代码_php技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-17 08:49:46
Original
990 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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template