Flash:位图不准确

发布于 2024-12-09 03:54:30 字数 190 浏览 1 评论 0原文

我将位图加载到舞台上,它是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随风而去 2024-12-16 03:54:30

我会尝试 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文