HaikuArchives / ArtPaint

ArtPaint is a painting and image processing program.
https://haikuarchives.github.io/ArtPaint/
29 stars 18 forks source link

Selection->Rotate is incorrect #525

Closed dsizzle closed 9 months ago

dsizzle commented 1 year ago

Selections in ArtPaint are stored as bitmaps, and then a polygonal representation of the bitmap is displayed to the user as the selection boundary.

00sel

When selections are rotated, the polygonal representation is rotated: 01sel

This is not correct because the "pixels" on the rotated selection no longer match the pixels of the image, and this can lead to ugly artifacts.

Instead, the underlying pixels of the selection should be rotated, and then the polygonal representation should be updated to match.

dsizzle commented 9 months ago

Closed via #621