Bug with rotatedBitmap

Hi!

So, when rotatedBitmap is used, the result can be wrong. I would say it depends on the resolution of the bitmap.

Here's the screenshot of the same bitmap (original size : 20x30), being rendered normally on the left and being rotated at a 90 degrees angle on the right.
Capture d'écran 15.11.2024 à 10.33.05 AM
As you may see, the bitmap is cropped on the top and the left by 1 pixel, and have a clear lined on the right and the bottom to compensate.

This bug was discovered in 2.6.0 and is still present in 2.6.1. It happens on Simulator (Mac) and real hardware. I have not tested if the equivalent command in LUA is also affected.

Don't hesitate to ask me if you need more info!

3 Likes

I think the same, this one has been around a while: image:rotatedImage(90) offsets/crops pixels by (-1,-1)… new in SDK 1.12?

also probably the same error as this one (in 2.5.0) image:transformedImage transforms seem to contain an off-by-one error

1 Like