我面对奇怪的问题,而在iOS 10
翻转图像不工作在iOS上10
翻转的形象在这里是我的代码。
uiImage = [[UIImage alloc] initWithCIImage:ciImage];
flippedImg = [UIImage imageWithCIImage:ciImage scale:uiImage.scale orientation:UIImageOrientationDownMirrored];
captureImgView.image = flippedImg;
我正在一个ciImage
和得到成uiImage
。 然后翻转那UIImage
。 此代码适用于所有iOS版本,低于10. 但在10及以上版本无效。
我尝试了所有取向,
UIImageOrientationUpMirrored
UIImageOrientationLeftMirrored
UIImageOrientationUp
UIImageOrientationRight
UIImageOrientationDown
UIImageOrientationLeft
UIImageOrientationDownMirrored
UIImageOrientationRightMirrored
但没有什么工作。
我正在从前置摄像头拍摄自拍照并将该自拍照附加到UIImageView
。 我不想附上从前置摄像头拍摄的翻转图像。 这里我想要原始图像。
请指导我一样。
在此先感谢。
是的,我只得到这一个。但我不想翻转图像。我想要表现出来。并从前置摄像头拍摄。图像直接放在UIImageView上工作在我的末端... – Sagar
然后直接使用原始图像.... 'UIImage * uiImage = [UIImage imageNamed:@“wall1.png”]; _imgOriginal.image = uiImage;' – VRAwesome
我从前置摄像头捕获图像。 not direct image – Sagar