Converting image to Black & White image on iPhone SDK issues.
- by KfirS
Hello,
I've used a familiar code to convert image to Black & White which I've founded on several forums.
The code is:
CGColorSpaceRef colorSapce = CGColorSpaceCreateDeviceGray();
CGContextRef context = CGBitmapContextCreate(nil, originalImage.size.width, originalImage.size.height, 8, originalImage.size.width, colorSapce,…