Transform SWF

码农软件 · 软件分类 · Flash开发包 · 2019-04-04 09:43:48

软件介绍

Transform SWF提供一套完整的,面向对象的API来分析、操作和生成Flash文件。

Transform SWF 是一个简单易用的用户库,用来读写 Flash 的swf 和 Flash 视频文件。它包含对应每种tag和数据结构的类。提供 C 语言和 Java 语言两种版本。

Java 的示例代码:

import java.awt.Font;
import java.io.IOException;
import com.flagstone.transform.*;
import com.flagstone.transform.util.*;

int width = 6000;
int height = 1000;
int border = 400;
int fontSize = 240;

try {
    FSMovie movie = new FSMovie();

    Font font = new Font("Arial", Font.PLAIN, 1);
    String txt = "The quick, brown, fox jumped over the lazy dog.";
    char[] characters = txt.toCharArray();
    java.util.Arrays.sort(characters);

    FSTextConstructor constructor = new FSTextConstructor(
        movie.newIdentifier(), font);
    constructor.willDisplay(characters);

    FSDefineFont2 definition = constructor.defineFont();
    FSDefineText2 text = constructor.defineText(         movie.newIdentifier(), txt, fontSize, new FSColor(0,0,0));

    movie.setFrameSize(new FSBounds(-border, -border, width, height));
    movie.setFrameRate(1.0f);
    movie.add(new FSSetBackgroundColor(FSColorTable.lightblue()));
    movie.add(definition);
    movie.add(text);
    movie.add(new FSPlaceObject2(text.getIdentifier(), 1, 0 , 0));
    movie.add(new FSShowFrame());

    movie.encodeToFile("example.swf");
}
catch (IOException e) {
    System.err.println("Cannot write to file");
}

本文地址:https://codercto.com/soft/d/2826.html

WEBMASTER技术手册

WEBMASTER技术手册

斯潘奥尔 / 斯潘奥尔 / 清华大学出版社 / 2004-4 / 63.0

本书的第三版升级到Apache PHP和Java Script 最新的版本上。同是它还包含了关于mod_perl更为详尽的信息以及提高Web 性能的方法。书中的内容涉及到HTML4.01、CSS、XML和XSLT、JavaScript1.5 、HTTP1.1、A pache2.0等等。一起来看看 《WEBMASTER技术手册》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器