让drawRoundRect抗锯齿的最简单的方法:

让x和y坐标为小数:

this.graphics.lineStyle(0,0,1);
this.graphics.drawRoundRect(10.5,10.5,100,100,20);

今天在FlashSeer的群里面讨论得出的结论,太经典了。平时让我们头痛的小数坐标现在居然能起到这个作用。这样也避免了位图的引入,提高了程序灵活性。

Still looking for something?

: http://as3blog.com/as3/drawroundrect-anti-alias/

Post a comment now » Sorry, the comments are closed.

No comments yet.

Sorry, the comment form is closed at this time.