Bitmap's smoothing and bitmapData properties

by yonatan forked from forked from: Debugging stack overflows (diff: 24)
♥0 | Line 18 | Modified 2011-05-09 14:10:41 | MIT License
play

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";
        }
    }
}

Forked