Thanks Abhinash

-
Sandeep

On Sun, Jun 20, 2010 at 4:12 AM, Abinash <[email protected]> wrote:

> Hi Sandeep,
>
> Below is a code snippet I used in one of my projects for saving
> movieclip as image.
> _fileRef = new FileReference();
> var encoding:PNGEncoder;
> bitmap_data=new BitmapData(mainClip.width,mainClip.height,false,
> 0xDEDEDE);
> bitmap_data.draw(mainClip);
> byte_array=PNGEncoder.encode(bitmap_data);
> var filename:String = projectName+".png";
> _fileRef.save(byte_array,filename);
>
> This example saving movieclip(mainClip) to a PNG file.
> You can download PNG, JPEG, BMP encoder class libraries from:
> http://code.google.com/p/as3corelib/
>
> Hope this helps!
>
> Regards,
> Abinash
>
> On Jun 18, 3:19 am, sandeep reddy <[email protected]> wrote:
>  > Hi All,
> >
> > I have a requirement in which i need to take a screen shot of a movie
> clip
> > and display it as an image.
> >
> > If any one have come accross with this earlier or have any idea. Please
> let
> > me know , its very much urgent for me.
> >
> > --
> > Thanks
> > Sandeep
>
> --
>  You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
Thanks
Sandeep R Posanpally

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to