GDI+RotateFlip未在WMF图像上旋转
GDI+ RotateFlip is not rotating on WMF Image?
在C++中,当使用GDI+RotateFlip函数旋转WMF图像时,图像不会被旋转。我用下面的代码来旋转。
Graphics graphics(hdc);
Image image(L"Crayons.WMF");
image.RotateFlip(Rotate90FlipX);
graphics.DrawImage(&image, 10, 10, image.GetWidth(), image.GetHeight());
RotateFlip功能可正确旋转bmp和jpg图像。
RotateFlip功能是否支持WMF图像?
提前谢谢。
元文件是图形命令的列表,而不是光栅表示,因此旋转翻转不起作用。
将图元文件绘制为位图,然后旋转该位图。
请改用Graphics.RotateTransform和Graphics.ScaleTransform。在这里寻找灵感:绘图时翻转坐标以控制
相关文章:
- 程序仅正确旋转方形图像
- 在C++中使用OpenCV矩阵中的特征将图像旋转90度
- 无法编译此图像旋转代码
- 如何使用OpenCV从图像中检测旋转对象
- 逐像素旋转和翻转图像
- 使用接口上的C 旋转图像
- 在QML中旋转图像时降低CPU使用情况
- 旋转图像不起作用
- Openframeworks-通过OpenGL调用从图像中心旋转图像
- 如何在QT QWidgets C++中围绕图像中心旋转图像
- 如何在 openGL 中旋转图像
- 轻松BMP旋转图像到任何角度
- 在 C 语言中旋转图像对象和指针
- 在画布上绘制旋转图像
- BMP旋转图像
- 程序旋转图像时发生内存泄漏
- 如何在旋转图像时填充边框
- 在opengl中寻找旋转图像的中心
- 在opencv中裁剪旋转图像
- 旋转图像PPM