kCGColorSpaceGenericRGB is deprecated on iPhone?

后端 未结 1 978
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 08:34

I\'m trying to get bitmap context with the following code:

GContextRef MyCreateBitmapContext (int pixelsWide, int pixelsHigh)
{
    CGContextRef    context = NUL         


        
1条回答
  •  长发绾君心
    2021-02-07 08:56

    The generic color space is deprecated. Instead try;

    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();

    0 讨论(0)
提交回复
热议问题