Open appdicted opened 10 years ago
To fix the compiler warning line 706, just add (img)) after CGImageGetBitmapInfo and you will remove the warning "Implicit conversion..."
// Update to fix iOS 7 warning CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef ctx = CGBitmapContextCreate(outBuffer.data, outBuffer.width, outBuffer.height, 8, outBuffer.rowBytes, colorSpace, CGImageGetBitmapInfo(img)); CGImageRef imageRef = CGBitmapContextCreateImage (ctx); UIImage *returnImage = [UIImage imageWithCGImage:imageRef];
To fix the compiler warning line 706, just add (img)) after CGImageGetBitmapInfo and you will remove the warning "Implicit conversion..."
// Update to fix iOS 7 warning CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef ctx = CGBitmapContextCreate(outBuffer.data, outBuffer.width, outBuffer.height, 8, outBuffer.rowBytes, colorSpace, CGImageGetBitmapInfo(img)); CGImageRef imageRef = CGBitmapContextCreateImage (ctx); UIImage *returnImage = [UIImage imageWithCGImage:imageRef];