用.NET读取Flash格式文件信息

FlashInfo flashInfo = new FlashInfo(@"c:test.swf"); // 构造函数,参数是Flash文件地址
Console.WriteLine(
string.Format("Version: ", flashInfo.Version)); // Flash版本
Console.WriteLine(
string.Format("Compressed: ", flashInfo.IsCompressed)); //是否被压缩
Console.WriteLine(
string.Format("Width: ", flashInfo.Width)); // Flash的宽度
Console.WriteLine(
string.Format("Height: ", flashInfo.Height)); // Flash的高度
Console.WriteLine(
string.Format("FrameRate: ", flashInfo.FrameRate)); // 帧速率
Console.WriteLine(
string.Format("FrameCount: ", flashInfo.FrameCount)); // 总帧数
Console.WriteLine(
string.Format("FileLength: ", flashInfo.FileLength)); // 未压缩时的文件大小

代码下载:https://files.cnblogs.com/wbcms/flashinfoclass.rar

原文地址:https://www.cnblogs.com/wbcms/p/1358945.html