2
« on: September 06, 2023, 04:43:43 PM »
Is there a way to increase the size of the clipping region when I do transformations?
When I rotate a bitmap 45 degrees with CMD_ROTATEAROUND the corners of the bitmap are clipped. This is also seen if the bitmap is rectangular and rotated 90 degrees.
For example, if the bitmap is 100x50, and it is rotated 90 degrees, then the displayed bitmap will be rotated, but have the ends clipped.
It acts as if there is a scissor region that is the size of the bitmap.
This also happens when the bitmaps associated with the preloaded fonts are rotated.
--
I am using CMD_ROTATEAROUND to rotate around the center of the bitmap. I have also tried the CMD_TRANSLATE/CMD_ROTATE/CMD_TRANSLATE sequence, but it is effectively the same operation.
The work around for bitmaps is to enlarge the clipping region by simply enlarging the bitmap, filling in the extra with a transparent background. This workaround is not available when displaying built-in fonts though.
Thank you,
Andy