S.l.e!ep.¢%

像打了激速一样,以四倍的速度运转,开心的工作
简单、开放、平等的公司文化;尊重个性、自由与个人价值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

get the size of movie

Posted on 2009-11-25 23:53 S.l.e!ep.¢% 阅读(141) 评论(0)  编辑 收藏 引用 所属分类: VC
  好象通过shockwave   flash   ocx控件无法取得movie的原始大小,   不过我已经找到了解决的办法:直接读取文件,在文件头提取出movie大小即可.  
  附:  
  swf文件头结构  
  F                       1Bytes  
  W                       1Bytes  
  S                       1Bytes  
  文件版本         1Bytes  
  文件大小         4Bytes  
  nBits               5Bits  
  xMin                 SB[nBits]  
  xMax                 SB[nBits]  
  yMin                 SB[nBits]  
  yMax                 SB[nBits]  
   
  (xMax-xMin)/20即为Width  
  (yMax-yMin)/20即为Height  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理