Dear Friend ,

Using Bitmapdata draw method you can do this.

    var bd : BitmapData = new
BitmapData(canvaswidth,canvasheight,true);
     bd.draw(canvas);
    var pgenc:mx.graphics.codec.PNGEncoder= new PNGEncoder(); // also
you can use JPGEncoder
    var imgD:ByteArray= pgenc.encode(bd);      // from byte array you
can generate thumbnails.

On Apr 22, 7:12 pm, Varun Bajaj <[email protected]> wrote:
> Dear Expert
>
> Greeting for the day. I have few components added on my canvas at runtime  i
> want to create a thumbnail of my canvas. Is there any way to create clear
> thumbnail of canvas?
>
> Any help is highly appreciable.
>
> Thanks and regards,
>
> Varun Bajaj
>
> --
> 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 
> athttp://groups.google.com/group/flex_india?hl=en.

-- 
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