旋转闪光灯造成的图像边框看起来" pixely",如何解决? [英] Rotation in flash causing image borders to look "pixely", how to fix?
问题描述
我在闪存加载的位图,2D游戏。位图重新presents一个字符,当用户使用A(左)和D(右)键旋转。我的问题是图像的边界变得丑陋而旋转,你可以看到像素(你总能看到像素,但我希望你明白我的意思)。
I have a bitmap loaded in flash, for a 2D game. The bitmap represents a character and is rotating when the user uses the A (left) or D (right) keys. The problem I have is that the border of the image becomes ugly while rotating, you can see "pixels" (you can always see pixels, but I hope you understand what I mean).
我怎样才能解决这个问题在ActionScript 3,也许改变旋转算法或旋转后修复的形象呢?或者我应该保存/不同的呈现图像的,例如。之前的Photoshop使用它与Flash?
How can I fix this in actionscript 3, maybe change the rotation algorithm or "fix" the image after rotation? Or should I save/render the image differently in eg. Photoshop before using it with Flash?
更新:注意该游戏的背景是不断变化的
Update: note that the background of the game is constantly changing.
在此先感谢。
推荐答案
使用的 flash.display.Bitmap ::平滑财产......在langref指定,它流畅的缩放的时候,但它适用于旋转,以及...
use the flash.display.Bitmap::smoothing property ... the langref specifies, it smooth's when scaling, but it works for rotation as well ...
这篇关于旋转闪光灯造成的图像边框看起来" pixely",如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!