iOS 10: cicontext.render() makes transparent areas black
Asked Answered
F

0

15

I'm using

ciContext.render(overlayImg, to: pixelBuffer, bounds: bufferFrame, colorSpace: nil)

where overlayImg is an image with transparent areas. Pre-iOS10 this worked as expected, but since iOS 10 the transparent areas are black.

I don't know exactly what changed, but how can I achieve the rendering with transparency again?

Fresnel answered 9/3, 2017 at 12:31 Comment(10)
Dealing with this same problem - any success?Airiness
no, unfortunately not :( Would LOVE if you post the solution if you have one...Fresnel
Post some sample code that I can run, I will try to help you as best as I can.Wilbertwilborn
@Wilbertwilborn Posted some sample code here where I'm dealing with a similar issue: #45373883Airiness
How are you creating your CIContext?Ronni
have a look at https://mcmap.net/q/826702/-core-image-rendering-a-transparent-image-on-cmsamplebufferref-result-in-black-box-around-it might helpErdman
Try setting the color space instead of nilShiprigged
@Fresnel any update on this?Shirleeshirleen
please share with the answer :)Draughtsman
This work for me. #47576663Pulque

© 2022 - 2024 — McMap. All rights reserved.