Alpha Info Enum
Specifies the bitmap layout information.
public enum CGImageAlphaInfo
type CGImageAlphaInfo =
Alpha channel comes first using 32-bits per pixel and 8 bits per channel (ARGB).
Alpha comes last, 32-bit per pixel, 8-bits per channel (RGBA).
Used for CMYK processing, 32-bits per pixel, 8-bits per channel (CMYK).
There is no alpha channel, 32-bits per pixel, 8 bits per channel, with the topmost channel ignored (xRGB).
There is no alpha channel, 32-bits per pixel, 8 bits per channel, with the lower channel ignored (RGBx).
No color data, only alpha channel data.
Premultipled values for RGB, alpha channel comes first using 32-bits per pixel and 8 bits per channel (ARGB)
Premultipled values for RGB, alpha comes last, 32-bit per pixel, 8-bits per channel (RGBA).
Quartz supports a number of color models: red, green and blue (RGB), cyan, magenta, yellow and key black (CMYK) and grayscale. Additionally, it is possible to specify an alpha channel that determines the transparency of the color when compositing an image with another one.
This enumeration determines the in-memory organization of the data and includes the color model, whether there is an alpha channel present and whether the component values have been premultiplied.
Pre-multiplication means that the values for red, green and blue have already been multiplied by the alpha value. This helps speed up rendering as it avoids three multiplications per pixel at render time.