Does anybody know how to change the brightness of a UIImageView in objective-C? Also, is there a way to increase/decrease the size of the UIImage?
Does anybody know how to change the brightness of a UIImageView in objective-C? Also,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the
UIImage(void)drawInRect:(CGRect)rect blendMode:(CGBlendMode)blendMode alpha:(CGFloat)alphamethod and see what you can create. Otherwise, you are going to have to do some more in depth work increasing the brightness of each pixel in HSV color space (proportionately increasing the V values). By blending the image with a white image using the right blend mode though, you should be able to brighten theUIImagecontained within theUIImageView.EDIT:
Also, as I answered in your other question, the
UIImagewill scale to fit theUIImageView. The image data itself will not scale, but the onscreen rendering will.