2008-03-11

发布swf-util 0.01

swf-util是一个使用Ruby读取swf头信息(高度、宽度、文件大小、帧数等等)、压缩和解压缩swf文件的工具类库,改写自java版本。
项目主页:http://code.google.com/p/swf-util/
协议:MIT License
依赖BitStruct,请到这里下载安装bit-struct。

使用例子:

#read swf head
require 'swf_util'

header=SwfUtil::read_header("test.swf")
puts header.inspect
header.version
header.frame_rate
header.width
header.frame_count


#decompress swf
SwfUtil::decompress_swf("test.swf")

#compress swf
SwfUtil::compress_swf("test.swf")
 

 

评论
发表评论

您还没有登录,请登录后发表评论

dennis_zane
搜索本博客
我的留言簿
  • 你好,看过你关于自定义classloader的回帖,想问问几个问题:   ...
    -- by llp20_2000
存档
最新评论