public void RotateImage(double angle) { SourceImageFullSize = SourceImageFullSize.Rotate(angle, new Bgr(255, 255, 255), false); SourceImage = SourceImage.Rotate(angle, new Bgr(255, 255, 255), false); FinalPreviewImage = SourceImage.Copy().Mat; }