Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flipping/mirroring images

Rotating WPF images is pretty easy

imgCurrent.LayoutTransform = new RotateTransform(_rotationAngle);

What about horizontal and vertical mirroring ?

offtop:

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

is there tomething easy in wpf?

like image 582
Papa John Avatar asked Dec 06 '11 13:12

Papa John


1 Answers

new ScaleTransform() { ScaleX = -1 };
like image 103
H.B. Avatar answered Oct 22 '22 14:10

H.B.