Apple Tech Note "To create an alpha-only bitmap context simply pass the null to the color scheme parameter."
However, I'm not sure what to pass for the I was trying to do something like this, with kCGImageAlpha Only: But it gives me a warning about being wrong. What should I do instead? The docs clearly states that you can A solution value must be entered: This will make the compiler happy. bitmapInfo parameter
CGContextRef ctx = CGBitmapContextCreate (NULL, scaledSize.width, scaledSize.height, 8, scaledSize.width, NULL, kCGImageAlphaOnly);
CGImageAlphaInfo even if the parameter is < Code> CGBitmapInfo is defined according to the requirement of a value from enum.
(CGITMapInfo) KCGImage Alpha only
No comments:
Post a Comment