matrix=new Matrix()
matrix.scale(img.width/_bitmap.width)

img.graphics.clear()

img.graphics.beginBitmapFill(_bitmap,matrix,false,false)
img.graphics.drawRect(0,0,img.width,400)
img.graphics.endFill



 

Regards,

 

Keith Reinfeld
Home Page:  <http://keithreinfeld.home.comcast.net/>
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of atlantageek
Sent: Friday, August 20, 2010 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Basic question about copying bitmap Data to a display
object.

 

  

Currently I am copying bitmap data to an image using 
matrix=new Matrix()
matrix.scale(img.width/_bitmap.width)
img.graphics.beginBitmapFill(_bitmap,matrix,false,false)
img.graphics.drawRect(0,0,img.width,400)
img.graphics.endFill

any suggestions. This is a update that happens several times a second.
It gets slower over time.



<<image001.jpg>>

<<image002.jpg>>

Reply via email to