当前位置:网站首页>C#将位图旋转90度
C#将位图旋转90度
2022-08-03 18:27:00 【tonysh_zds】
private void RotateAndSaveImage(String input, String output)
{
//create an object that we can use to examine an image file
using (Image img = Image.FromFile(input))
{
//rotate the picture by 90 degrees and re-save the picture as a Jpeg
img.RotateFlip(RotateFlipType.Rotate90FlipNone);
img.Save(output, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
边栏推荐
- 域名抢注“卷”到了表情包?ENS逆势上涨的新推力
- 【牛客在线OJ】-字符逆序
- warnings.warn(“Title is more than 31 characters. Some applications may not be able to read the file
- Oracle备份的几种方式
- Online monitoring of UPS power supply and operating environment in the computer room, the solution is here
- vulnhub pyexp: 1
- 荧光标记多肽FITC/AMC/FAM/Rhodamine/TAMRA/Cy3/Cy5/Cy7-Peptide
- 5v2.1a给5v2a充电行吗
- 这是Facebook母公司 关于元宇宙的80万亿美元豪赌
- 广告电商、泰山众筹、链动2+1,这3个模式到底怎么样?
猜你喜欢
随机推荐
CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes), problem: (D) Magical Array
程序员如何分分钟搞垮一个项目?
首届MogDB征文活动开启啦!
es6新增-Generator(异步编程的解决方案2)
【Django-Docker】Sqlite3.db读取权限不够-20220803
Uniswap或将开启“费用开关”,UNI持有者可享受分红
cdc抽取mysql整个实例的binlog,有没有方案通过配置的方式将这些库表拆开分发到kafka
select......for update 语句的功能是什么? 会锁表还是锁行?
EasyNTS上云网关断电重启后设备离线是什么原因?
你想知道的 Watch App 开发
技术干货|如何将 Pulsar 数据快速且无缝接入 Apache Doris
POJ 3041 Asteroids(最大匹配数=最小点覆盖)
【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position
学弟:我适不适合转行做软件测试?
【白话模电2】二极管特性和分类
【汇编语言02】第2章 寄存器——理论知识
POJ 2377 Bad Cowtractors(最大生成树)
大佬们,flinkcdc 2.2 版本采集sqlserver只能采集到全量的数据,不能采集到增量的数
在线监控机房内的UPS电源及运行环境,解决方案来了
【美丽天天秒】链动2+1模式开发