开发者

Slightly Distorted Bitmaps on some Android Devices

开发者 https://www.devze.com 2023-04-08 04:44 出处:网络
I have a problem that occurs on some displays (HTC Hero, Motorola Defy, HVGA emulator) where some bitmaps are distorted in a peculiar way: The image apparently is shifted by one or two pixels, e.g. to

I have a problem that occurs on some displays (HTC Hero, Motorola Defy, HVGA emulator) where some bitmaps are distorted in a peculiar way: The image apparently is shifted by one or two pixels, e.g. to the left, and the resulting gap on the right side is filled by duplicating pixels from the right border of the bitmap. I 开发者_如何学Gouse pre-computed LDPI/MDPI/HDPI versions of these bitmaps, e.g. a notification icon that fits the specs for notification icons.

I attached two images that show the effect. Please note: even though it might appear that the bitmap is tiled, this is not the case, other images consistently show that the pixels are not wrapped around but duplicated/stretched.

Slightly Distorted Bitmaps on some Android Devices

Slightly Distorted Bitmaps on some Android Devices

Has anybody ever had a similar problem?

Thanks in advance for any clues that could help me solve this issue,

Arne

0

精彩评论

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

关注公众号