如何在c#winForm中旋转多个页面图像 [英] How to rotate multiple pages image in c# winForm

查看:73
本文介绍了如何在c#winForm中旋转多个页面图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



1.我想在带有PictureBox Control的Window基础应用程序中使用c#旋转tift图像。此图像是单个传真图像,包含六个页面表示一个图像包含6个以上的图像,因此我想旋转此图像。当我旋转任何单页图像,这是完美的。但是在多页图像中会出现GUI错误。



2.另外我想在图像文件中保存图像旋转,这是图像的正常行为。当您正常旋转任何图像时,下次它将打开旋转角度。



我的代码如下:



Image img = PictureBox.Image;

img.RotateFlip(RotateFlipType.Rotate90FlipNone);

img.Save(ImagePath);

PictureBox.Image = img;

img.Dispose();

Hi All,

1. I want to rotate a tift image with c# in Window base application with PictureBox Control. This image is single fax image and contains six pages means one image contains 6 more images so i want to rotate this image. When i rotated any single page image which is working perfectly. But in Multi pages image are throw GUI error.

2. Also i want to save the image rotation in image file which is normal behavior of image. When you normally rotate any image and next time it will open rotated angle.

My Code is given below:

Image img = PictureBox.Image;
img.RotateFlip(RotateFlipType.Rotate90FlipNone);
img.Save(ImagePath);
PictureBox.Image = img;
img.Dispose();

推荐答案

这篇关于如何在c#winForm中旋转多个页面图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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