How to rotate Bitmap in windows GDI?

前端 未结 3 1078
日久生厌
日久生厌 2021-01-02 02:55

How would I go about rotating a Bitmap in Windows GDI,C++?

3条回答
  •  离开以前
    2021-01-02 03:12

    You can do it with GDI+ (#include ). The Graphics class has the RotateTransform method. That allows arbitrary rotations. Use Image::RotateFlip() if you only need to rotate by 90 degree increments, that's a lot more efficient.

提交回复
热议问题