Bitmap's smoothing and bitmapData properties
forked from forked from: Debugging stack overflows (diff: 24)
ActionScript3 source code
/**
* Copyright yonatan ( http://wonderfl.net/user/yonatan )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/oIZ4
*/
package {
import com.bit101.components.*;
import flash.display.*;
public class FlashTest extends TextArea {
public function FlashTest() {
width=height=465/2;
scaleX=scaleY=2;
var bmd:BitmapData = new BitmapData(1,1);
var bmp:Bitmap = new Bitmap(bmd);
bmp.smoothing = true;
text += "Before changing bitmapData:\n";
text += "bmp.smoothing = " + bmp.smoothing + "\n";
bmp.bitmapData = bmd;
text += "After changing bitmapData:\n";
text += "bmp.smoothing = " + bmp.smoothing + "\n";
}
}
}