Skip to content

Conversation

@duemunk
Copy link

@duemunk duemunk commented Jun 12, 2016

The vImage functions used expect a format of ARGB. CGImages where loaded as RGBA into vImage_Buffers.

Most functions would already worked as expected, since the vImage functions used does the same work on each channel respectively.
Though, if the flag kvImageLeaveAlphaUnchanged was used for the vImage functions, the red/R channel was left unchanged instead of the expected alpha/A channel. This happened since the alpha/A channel is the first in the expected buffer ARGB, but the format for th buffer supplied was RGBA.

@FlexMonkey
Copy link
Owner

Yay - thanks for this. I'm going to hold off a merge until I get back home next weekend where I can look at it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants