Thanks to all of you for your suggestions...

Sanjay
--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]> 
wrote:
>
> Tom's suggestion is a decent one if you're looking to save the 
image in an
> editable form. If you're wanting to save the image as a 
GIF/JPG/PNG/etc.,
> then you should search around for the various PNG enconders (I 
believe
> Adobe's ascorelib has at least a JPG encoder, maybe a few other 
formats as
> well). To turn your shapes into a bitmap, you'll need to use the 
Bitmap API,
> in particular BitmapData.draw() to draw the DisplayObjectContainer 
that
> serves as the shapes' root (a Canvas or other UIComponent most 
likely) to a
> bitmap, use the ascorelib/etc. methods to turn that into a 
ByteArray of JPG
> data, then send that to the server which will roundtrip back to 
the user as
> a downloadable file (since Flex can't directly save a file to the 
user's
> machine).
> 
> Troy.
> 
> 
> On 3/5/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> >
> > On Monday 05 Mar 2007, sanjaypmg wrote:
> > > I have made a screen where user can draw some SHAPES using 
graphics
> > > class at runtime using . I wanna give a functionality to save 
that
> > > object/drwaings once the it is completed.
> >
> > You could push() each drawing operation and parameters onto an 
Array as
> > the
> > user draws them.
> >
> > --
> > Tom Chiverton
> > Helping to carefully benchmark bleeding-edge e-commerce
> > On: http://thefalken.livejournal.com
> >
> > ****************************************************
> >
> > This email is sent for and on behalf of Halliwells LLP.
> >
> > Halliwells LLP is a limited liability partnership registered in 
England
> > and Wales under registered number OC307980 whose registered 
office address
> > is at St James's Court Brown Street Manchester M2 2JF.  A list 
of members is
> > available for inspection at the registered office. Any reference 
to a
> > partner in relation to Halliwells LLP means a member of 
Halliwells LLP.
> > Regulated by the Law Society.
> >
> > CONFIDENTIALITY
> >
> > This email is intended only for the use of the addressee named 
above and
> > may be confidential or legally privileged.  If you are not the 
addressee you
> > must not read it and must not use any information contained in 
nor copy it
> > nor inform any person other than Halliwells LLP or the addressee 
of its
> > existence or contents.  If you have received this email in error 
please
> > delete it and notify Halliwells LLP IT Department on 0870 365 
8008.
> >
> > For more information about Halliwells LLP visit 
www.halliwells.com.
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>


Reply via email to