Drawing premultiplied RGBA or ARGB images into floating-point context without alpha channel results in wrong colors

Originator:an00na
Number:rdar://28870559 Date Originated:20-Oct-2016 11:16 AM
Status:Open Resolved:
Product:iOS SDK Product Version:10.0
Classification:Other Buge Reproducible:Always
 
Summary:
Drawing premultiplied RGBA or ARGB images into context with floating-point format without alpha channel results in wrong colors.

Steps to Reproduce:
1. Run sample playground to see the bug.
2. Set outputColorSpaceType to extended sRGB to see the correct result.
3. Set toFloat to false and outputColorSpaceType to any type that supports integer format to see that integer format always works correctly.

Code: https://cloudup.com/cwGE060IcdE

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!