RE: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Douglas Pearson
Thanks to everyone who pointed out the bitmapData.draw() method!

I had seen that in passing but didn't realize that IBitmapDrawable supported
all display objects.

Thanks folks--that should do nicely.

Doug

-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 8:48 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Anyway way to capture a SWF as a bitmap?

Hi,
you mean something like this:
var bitmapData1:BitmapData =
new BitmapData(200, 200, false, 0x00); bitmapData1.draw(myMC,new
Matrix());

?
greetz
JC


On 3/21/07, Douglas Pearson <[EMAIL PROTECTED]> wrote:
>
> Anyone know if there's a way to draw the contents of a SWF to a 
> Bitmap/BitmapData object within Flash?
>
> I have a SWF that involves lots of complex rendering steps and I want 
> to be export it as a bitmap.  The export part should be fine (using a 
> server to actually save the file) if I can figure out how to get it 
> into a BitmapData object so I can call getPixels() on it.
>
> Anyone have any ideas?
>
> Doug
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Alain Rousseau
Have you tried loading the swf inside a MovieClip and then trace the
MovieClip to a BitmapData object ? 
I don't know if the same security restrictions apply to swf files as with
image files ...

Alain

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Pearson
Sent: 21 mars 2007 10:56
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Anyway way to capture a SWF as a bitmap?

Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.16/729 - Release Date: 2007-03-21
07:52
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.16/729 - Release Date: 2007-03-21
07:52
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread elibol

Hey Douglas,

To answer  your question, the technique is to create a BitmapData object
initialized to the width/height of  your movieclip, you then call draw()
passing the movieclip you want to convert.

This is something I've done in Flex. It's much easier in AS3 as there are
jpeg/png encoders out there that encode BitmapData objects into byte arrays.
The encoding phase is a little resource intensive, but once it's done, you
have a compressed object you can send and write straight to the HD without
any encoding on the server side.



On 3/21/07, Douglas Pearson <[EMAIL PROTECTED]> wrote:


Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to
be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a
BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Danny Kodicek
 > Anyone know if there's a way to draw the contents of a SWF to 
> a Bitmap/BitmapData object within Flash?
> 
> I have a SWF that involves lots of complex rendering steps 
> and I want to be export it as a bitmap.  The export part 
> should be fine (using a server to actually save the file) if 
> I can figure out how to get it into a BitmapData object so I 
> can call getPixels() on it.

Can't you just use BitmapData.draw()?

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Zeh Fernando

Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?


Thankfully:

  myBitmapData.draw(myMovieClip)


Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread dan
CHK OUT bitmap.draw();

:)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Pearson
Sent: Wednesday, March 21, 2007 4:56 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Anyway way to capture a SWF as a bitmap?

Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Hans Wichman

Hi,
you mean something like this:
var bitmapData1:BitmapData =
new BitmapData(200, 200, false, 0x00);
bitmapData1.draw(myMC,new Matrix());

?
greetz
JC


On 3/21/07, Douglas Pearson <[EMAIL PROTECTED]> wrote:


Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to
be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a
BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com