tbitmap

Rotating a square TBitmap on its center

为君一笑 提交于 2019-11-27 04:54:32
问题 I am trying to find the simplest way to rotate and display a TBitmap on its center by any given angle needed. The TBitmap is square and any clipping that might occur is not important so long as the rotated bitmap's center point remains constant. The image is very small, only around 50 x 50 pixels so speed isn't an issue. Here is the code I have so far which rotates a TBitmap to 90 degrees, which is simple, the any angle thing less so. std::auto_ptr<Graphics::TBitmap> bitmap1(new Graphics: