简体   繁体   English

iOS:如何使用imagePicker使图像更明亮?

[英]iOS: how to make an image brighter using imagePicker?

I am making an app that take an photo from the iPad. 我正在制作一个可以从iPad拍照的应用程序。 We want to be able to adjust the contrast and brightness because the image taken seems kinda dim. 我们希望能够调整对比度和亮度,因为所拍摄的图像似乎有点暗。 We thought about Overlay, but it looks like it can't make the image brighter but darker. 我们考虑过叠加层,但看起来无法使图像更亮但更暗。 Any suggestions on how to make it? 关于如何制作的任何建议? Thanks in advance. 提前致谢。

you can use the category UIImage+Brightness.h provided with UIImageAdjust 您可以使用UIImageAdjust提供的类别UIImage + Brightness.h
the category add to uiimage a very simple methode 类别添加到uiimage一个非常简单的方法

- (UIImage*) imageWithBrightness:(CGFloat)brightnessFactor;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM