开发者

AS3 Anti Aliasing of a rotated bitmap

开发者 https://www.devze.com 2023-01-16 15:55 出处:网络
When rotating a bitmap with actionscript, the edges are jagged and not properly anti-aliased. How do you force anti-aliasing of the bitmap ?

When rotating a bitmap with actionscript, the edges are jagged and not properly anti-aliased.

How do you force anti-aliasing of the bitmap ?

this.stage.quality = StageQuality.B开发者_开发问答EST; // Tried this, but seems useless 
var imgFromLib = new imgFromLib ();
imgFromLib.rotation = 30;


imgFromLib should be castable to Bitmap; Bitmap has smoothing and pixelSnapping properties. Maybe this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消