Bitmapsmoothing – glätten via AS3

When you work with embed smoothing (glätten) images works with this snippet:

[Embed(source="pathto/image.png")]
private var _imgName : Class;
 
...
 
var tmpSpr : Sprite = new Sprite();
var tmpBmp : Bitmap = new _imgName as Bitmap;
 
tmpBmp.smoothing = true;
 
tmpSpr.addChild(tmpBmp);

 

Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">