Re: [flexcoders] Image centering

2008-04-01 Thread Michael Wagner
Thanks a lot for your answers This also worked for me *** var content:DisplayObject = LoaderInfo( event.target ).content; var bitmapData:BitmapData = new BitmapData( content.width, content.height ); bitmapData.draw( content ); var bmp:Bitmap = new Bitmap(bitmapData.clone()); * *var* sprite

Re: [flexcoders] Image centering

2008-04-01 Thread Vadim Alekseevski
You must set position from Matrix. area:BitmapData = *new* BitmapData(200,200); *var* myBitmap:Bitmap = *new* Bitmap(bitmappicturefrom); area.draw(myBitmap,*new* Matrix(1,0,0,1,x,y)); where x,y is position of image.

Re: [flexcoders] Image centering

2008-03-31 Thread Eric Cancil
om:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Michael Wagner > *Sent:* Sunday, March 30, 2008 11:24 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Image centering > > > > Hi Alex: > > > > Thanks for your mail >

RE: [flexcoders] Image centering

2008-03-31 Thread Alex Harui
flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of Michael Wagner Sent: Saturday, March 29, 2008 4:34 AM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [fl

Re: [flexcoders] Image centering

2008-03-31 Thread Michael Wagner
with mx:Image based on my example ? > > Thanks, > > Michael. > > > > > > On 3/30/08, Alex Harui <[EMAIL PROTECTED]> wrote: > > > >Use the mx:Image tag > > > > > > ---------- > > > > *From:* flexcoders@yahoogroups.com [mailto:[

Re: [flexcoders] Image centering

2008-03-31 Thread Michael Wagner
PROTECTED] *On > Behalf Of *Michael Wagner > *Sent:* Saturday, March 29, 2008 4:34 AM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Image centering > > > > Hello: > > > > I am new with Flex. > > > > I need to position an image ( can be

Re: [flexcoders] Image centering

2008-03-30 Thread li wenzhi
From: Michael Wagner <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, March 29, 2008 7:33:59 PM Subject: [flexcoders] Image centering Hello: I am new with Flex. I need to position an image ( can be a jpg, bmp, etc ) in a bitmaparea bigger then the image size I have tried code

RE: [flexcoders] Image centering

2008-03-29 Thread Alex Harui
Use the mx:Image tag From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Wagner Sent: Saturday, March 29, 2008 4:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Image centering Hello: I am new with Flex. I

[flexcoders] Image centering

2008-03-29 Thread Michael Wagner
Hello: I am new with Flex. I need to position an image ( can be a jpg, bmp, etc ) in a bitmaparea bigger then the image size I have tried codes like this but it is positioned in (0,0) How is the task accomplished ? *area:BitmapData = new BitmapData(200,200); * var myBitmap:Bitmap = new Bitmap