[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] bbox using gfx
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] bbox using gfx |
Date: |
Sat, 14 Nov 2009 13:47:09 -0800 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On Sat, Nov 14, 2009 at 08:33:23PM +0100, Pablo Rodr?guez <address@hidden>
wrote:
> I mean something like:
>
> import gfx
> swf = gfx.open("swf", "file.swf")
> print swf.bbox
As different pages can have different dimensions in some file
formats, you'll need to extract a page first:
import gfx
swf = gfx.open("swf", "file.swf")
page1 = swf.getPage(1)
print page1.width,page2.height
(Bounding boxes always start at (0,0) as far as gfx is
concerned, so you only need the width/height)
Matthias