C# 中的反转 Picturebox 图像
我想让程序中的一个按钮将图片框的背景图像翻转 180 度,使其面向另一个方向。所以请我有一些代码。我尝试使用这段代码: capturebox.BackgroundImage.RotateFlip = 180; 但这是错误的,程序无法编译,请帮忙。
谢谢
编辑
是的,抱歉,我的意思是镜像,基本上面向另一个方向,所以例如左手击球手的照片可以是镜子,所以它看起来像他们是板球比赛中的右手击球手。我希望这个例子有帮助。
谢谢
I want to make a button in my program flip the backgroundimage of the picturebox by 180 degrees so its facing the other way. So please can i have some code for this. I tried using this code:
capturebox.BackgroundImage.RotateFlip = 180;
but this is wrong and the program doesn't compile, please help.
Thanks
Edit
Yeah, sorry, i meant a mirror image, basically facing the other way, so for example a picture of a left handed batsmen could then be mirror so it looks like they are a right handed batsmen in cricket. I hope this example helps.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试
Try
“旋转 180 度”将使图片上下颠倒。我猜你想“镜像”图像?
无论如何, RotateFlip 方法不采用一定程度,它从 RotateFlipType 枚举。
"Rotate 180 degrees" will set the picture upside down. I guess you want to "mirror" the image?
Anyway, the RotateFlip method doesn't take a number of degrees, it takes an value from the RotateFlipType enumeration.