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
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.
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
>
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
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:[
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
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
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
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
9 matches
Mail list logo