如何旋转位图在Windows GDI? [英] How to rotate Bitmap in windows GDI?

查看:279
本文介绍了如何旋转位图在Windows GDI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows GDI,C ++中旋转位图?

解决方案您可以使用GDI + code> #include< gdiplus.h> )。 Graphics类具有 RotateTransform方法。这允许任意旋转。如果您只需要轮播,请使用 Image :: RotateFlip() 90度的增量,这是一个更高效的。


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

解决方案

You can do it with GDI+ (#include <gdiplus.h>). 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.

这篇关于如何旋转位图在Windows GDI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆