ColorImage Color Filters do such tasks perfectly - I find them a bit simpler than using the Core Graphic (CG ...) classes: they work by letting you adjust the RGB and Alpha characteristics of the image that I have used to change white QRCode color to color. RGBA is white (1,1,1,1) in your case, I believe you should change the color. Just check the CI documentation for Apple, there are dozens of filters available for CIColorMatrix, only one of them.
CIImage *beginImage = [CIImage imageWithCGImage:image.CGImage]; CIContext *context = [CIContext contextWithOptions:nil]; CIFilter *filtercd = [CIFilter filterWithName:@"CIColorMatrix"
source share