iOS Guides | Samples

CoreGraphics.CGBitmapFlags Enumeration

Bitmap encoding.

Syntax

[System.Flags]
public enum CGBitmapFlags

Remarks

This enumeration specifies the layout information for the component data in a bitmap.

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.

Members

Member NameDescription
AlphaInfoMaskThe image has an alpha channel.
ByteOrder16Big16-bit big endian format.
ByteOrder16Little16-bit little endian format.
ByteOrder32Big32-big big endian format.
ByteOrder32Little32-bit little endian format.
ByteOrderDefaultThe default byte order.
ByteOrderMaskMask for extracting the byte ordering from the result.
FirstAlpha channel comes first using 32-bits per pixel and 8 bits per channel (ARGB).
FloatComponentsThe components of the bitmap are floating point values.
FloatInfoMask
LastLast Alpha comes last, 32-bit per pixel, 8-bits per channel (RGBA).
NoneUsed for CMYK processing, 32-bits per pixel, 8-bits per channel (CMYK).
NoneSkipFirstThere is no alpha channel, 32-bits per pixel, 8 bits per channel, with the topmost channel ignored (xRGB).
NoneSkipLastThere is no alpha channel, 32-bits per pixel, 8 bits per channel, with the lower channel ignored (RGBx).
OnlyNo color data, only alpha channel data.
PremultipliedFirstPremultipled values for RGB, alpha channel comes first using 32-bits per pixel and 8 bits per channel (ARGB)
PremultipliedLastPremultipled values for RGB, alpha comes last, 32-bit per pixel, 8-bits per channel (RGBA).

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGBitmapFlags are listed below.

See Also: Enum

Public Fields

AlphaInfoMaskCGBitmapFlags. The image has an alpha channel.
ByteOrder16BigCGBitmapFlags. 16-bit big endian format.
ByteOrder16LittleCGBitmapFlags. 16-bit little endian format.
ByteOrder32BigCGBitmapFlags. 32-big big endian format.
ByteOrder32LittleCGBitmapFlags. 32-bit little endian format.
ByteOrderDefaultCGBitmapFlags. The default byte order.
ByteOrderMaskCGBitmapFlags. Mask for extracting the byte ordering from the result.
FirstCGBitmapFlags. Alpha channel comes first using 32-bits per pixel and 8 bits per channel (ARGB).
FloatComponentsCGBitmapFlags. The components of the bitmap are floating point values.
FloatInfoMaskCGBitmapFlags.
LastCGBitmapFlags. Last Alpha comes last, 32-bit per pixel, 8-bits per channel (RGBA).
NoneCGBitmapFlags. Used for CMYK processing, 32-bits per pixel, 8-bits per channel (CMYK).
NoneSkipFirstCGBitmapFlags. There is no alpha channel, 32-bits per pixel, 8 bits per channel, with the topmost channel ignored (xRGB).
NoneSkipLastCGBitmapFlags. There is no alpha channel, 32-bits per pixel, 8 bits per channel, with the lower channel ignored (RGBx).
OnlyCGBitmapFlags. No color data, only alpha channel data.
PremultipliedFirstCGBitmapFlags. Premultipled values for RGB, alpha channel comes first using 32-bits per pixel and 8 bits per channel (ARGB)
PremultipliedLastCGBitmapFlags. Premultipled values for RGB, alpha comes last, 32-bit per pixel, 8-bits per channel (RGBA).