2011-12-06 212 views
5

旋轉WPF圖像是相當容易的翻轉/鏡像圖像

imgCurrent.LayoutTransform = new RotateTransform(_rotationAngle); 

怎麼樣的水平和垂直鏡像?

offtop:

In GDI(Drawing namespace) there was bitmap.RotateFlip(rotateFlipType); 

有tomething容易在WPF?

+1

可能的複製http://stackoverflow.com/questions/3005219/how-to-flip-image-in- WPF – Matten

+0

從XAML可以使用這樣的事情: http://www.codeproject.com/KB/WPF/WPFImageEffects.aspx 從後臺代碼:http://stackoverflow.com/questions/2282107/how -DO-I-使-A-反射效果的在-WPF的由代碼 – Josh

回答

5
new ScaleTransform() { ScaleX = -1 }; 
0

套用ScaleTransform X或Y比例因子的