/// <summary> /// Rotate or / and Flip the bitmap source to a new source /// </summary> /// <param name="source"></param> /// <param name="type">RoateFlipType</param> /// <returns></returns> public static BitmapSource RotateFlip(this BitmapSource source, System.Drawing.RotateFlipType type) { System.Drawing.Image img = source.ToBitmap(); img.RotateFlip(type); return(img.ToBitmapSource()); }