开发者

CoreImage patches problems in 10.6

开发者 https://www.devze.com 2022-12-08 02:48 出处:网络
In 10.6 with some systems CoreImage CIPerspectiveTransform (And other api\'s too) results in colored patchesin output image. (It seems like hardware related issue And it occurs only with images with r

In 10.6 with some systems CoreImage CIPerspectiveTransform (And other api's too) results in colored patches in output image. (It seems like hardware related issue And it occurs only with images with resolution above 4000X2500)

Is there ay way to come out of this bug? At-last is it possible to use NSAffineTrans开发者_如何学Cform instead? If yes how to use it.

Thanks, Dhana.


When creating your CIContext, have you tried disabling the hardware renderer? This fixed problems for me:

CIContext *context = [CIContext contextWithCGContext:[[NSGraphicsContext currentContext] graphicsPort]
                                             options:[NSDictionary dictionaryWithObjectsAndKeys:
                      [NSNumber numberWithBool:YES], kCIContextUseSoftwareRenderer, nil]];
0

精彩评论

暂无评论...
验证码 换一张
取 消