Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the dimensions of a swf file from a .NET Program

Tags:

c#

is it possible to get the dimensions of a swf file from c#?

like image 308
raklos Avatar asked Feb 18 '10 12:02

raklos


2 Answers

You should read the fileheader and retrieve the width and height: here is an example

like image 128
RvdK Avatar answered Oct 21 '22 10:10

RvdK


Found this one that works w/ latest Flash (10); supports compressed swf, too.

Reader of SWF Header returns a negative height for me; does not support compressed swf.

like image 23
sjlewis Avatar answered Oct 21 '22 08:10

sjlewis