Post

Replies

Boosts

Views

Activity

Reply to Core Image drawing corruption
I've done some further experiments: if I set the CGImage (obtained from the CIImage) directly onto the contents property of the layer of my view, then it works and display fine. But if I implement drawRect() and draw the CGImage into the CGContext using CGContextDrawImage() then it appears corrupted. How weird is that?
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23
Reply to Core Image drawing corruption
@FrankSchlegel here's a screen recording, top view is drawing the image in drawRect(), bottom view is assigning the image to the layer contents. The bottom view display what I expect. http://tclementdev.com/coreimage_metal_test.mov
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23
Reply to Core Image drawing corruption
@FrankSchlegel wow thank you, I added the ROI callback (simply returning the images full extent) and the top image doesn't look corrupted anymore. I'm so confused as to why the default behavior is any different when an ROI callback is not specified, wow. Still not the end of the story though, when drawing large with interpolation disabled (NSImageInterpolationNone and kCAFilterNearest), the top image is doing something odd, new video here -> http://tclementdev.com/coreimage_metal_test2.mov
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23