2012/11/6 Matthias Kramm <[email protected]>

> On Mon, Nov 05, 2012 at 01:06:31PM +0100, Pablo Beltran <
> [email protected]> wrote:
> > The data above corresponds to a png picture. Is the *734x449 *the total
> > size of the shape and  the *fill* coordinates below the offset to draw
> the
> > png inside the shape container?
>
> 734x449 is the size of the *bitmap*, not of the shape. The bitmap
> may be scaled to fit into the shape.
> The fill coordinates below give you offset and size of the shape, though.
>
> You may also want to try
>     swfdump -b file.swf
> to get explicit bounding boxes.
>

swfdump -b looks the best approach: much lighter than  swfdump -D and also
provides the required information.

Regarding the sizes and coordinates: i think I get the point. Therefore
there is a "small" problem getting the image from the rendered page at the
client side: bitmaps are scaled to fit the shape, so probably they will be
smaller (or greater) than the original, right?.

The "right" way to extract the images would be from the SWF file content.
Does the AS3 API provide support for that? (a sort of SWF introspection AS3
API)

Other ways could be:
1) Extract the pictures at the server side and send them with the SWF file
(a bit ugly).
2) Compile SWFTools with FlasCC and build a SWC library to extract the
images from the client side ;-)

Pablo.


> Matthias
>
> ---------------
> SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend
> an existing subscription, please kindly point your favourite web browser
> at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>
>
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an 
existing subscription, please kindly point your favourite web browser 
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>

Reply via email to