iphone - Scaling Images are very slow - Help

后端 未结 1 1326
陌清茗
陌清茗 2021-01-14 03:59

I am scaling images by myself using the following codes. The code is fine and the images are scaled without problem.

UIImage *originImg = img;
size = newSiz         


        
相关标签:
1条回答
  • 2021-01-14 04:33

    You could try either:

    CGContextSetInterpolationQuality(context, kCGInterpolationNone);
    

    or

    CGContextSetInterpolationQuality(context, kCGInterpolationLow);
    

    and see if either of those produce any performance differences with an acceptable quality level.

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