开发者

Reverse Picturebox image in c#

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 loo开发者_如何学Cks like they are a right handed batsmen in cricket. I hope this example helps.

Thanks


Try

capturebox.BackgroundImage.RotateFlip(RotateFlipType.Rotate180FlipY);


"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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜