Flash:位图不准确
我将位图加载到舞台上,它是 GIF,并设置为无损压缩。我已确保其坐标为整数并且不允许平滑(平滑在一定程度上解决了问题,但降低了图像质量)。
问题是图像似乎将一个像素向左移动,并将该像素添加到右侧,这意味着一侧没有边框,另一侧有双边框。
原始位图不存在这个问题,并且图像中没有透明度等。
有谁知道这可能是什么原因造成的?
I load a bitmap to the stage, it's a GIF and set to lossless compression. I have ensured its coordinates are integers and have not allowed smoothing (smoothing somewhat fixes the issue but reduces quality of the image).
The problem is the image appears to shift one pixel to the left and add that pixel on to the right side meaning one side has no border and the other a double border.
The original bitmap does not have this issue, and there is no transparency .etc in the image.
Anyone know what could be causing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会尝试 jpeg 的东西 - 老实说 gif 在 flash 中的表现对我来说经常很有趣,所以我现在倾向于只使用 jpeg 的。
另外,这看起来很简单,但要检查以确保 gif 没有被缩放 - 对我来说,每当在 Flash 中缩放光栅图像时,质量通常都会受到影响。
I would try the jpeg thing - honestly gif's act funny in flash more often than not for me so I tend to only use jpeg's now.
Also, it seems simple, but check to ensure the gif isn't being scaled - quality often suffers whenever a raster image is scaled in flash for me too.