Skip to content
Hokusai2.2.2
ivantokar.com

Channels & transparency

Operation What it does
extractChannel(_:) One channel (red, green, blue, alpha, luminance) as a grayscale image.
withAlpha(from:) Uses another pipeline as the alpha channel.
ensureAlpha(opacity:) Adds an alpha channel when there is none.
flatten(background:) Composites onto a solid colour and removes alpha.
removeAlpha() Drops the alpha channel.