简体   繁体   中英

Returning flipped image to its original view

I have flipped image using the code below during occuring of an event. now i want to again return image to its original view on happening of another event. here is code i used to flip image.

CompositeTransform n = new CompositeTransform();
n.ScaleX = -1;
image.RenderTransform = n;

这应该做的工作:

(image.RenderTransform as CompositeTransform).ScaleX = 1;

在您的情况下,请使用以下代码行;

image.RenderTransform = System.Windows.Media.Transform.Identity

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM