Here's the situation : on my stage, I have a Bitmap object that references a BitmapData object. My Bitmap object is fullscreen, so 1366x768.
On the other hand, I have a function (from a library so I can't edit it) that returns a BitmapData with a new picture. That picture is 640x480, and the function is called every second.
And here's the problem : I can't find a way to scale the returned picture to fullscreen. I tried with a Matrix and the .draw method but that do nothing.
Here's some code :
var mat:Matrix = new Matrix();
mat.scale(0.52, 0.52); // I tried with other values such as 2 but the picture stays the same
// scr_bmp is the BitmapData attached to the displayed Bitmap
// capt.bmp is the BitmapData returned by the function
// I tried without the new Rectangle but that doesn't change anything
scr_bmp.draw(capt.bmp, mat, null, null,new Rectangle(0, 0, 640, 480), true);
With this code, the new picture is correctly displayed but in it's original size : 640x480 and the rest of the screen is blank.
Thanks in advance for your help !