Flattening Data

Perform an alpha composite of a four-channel image over a solid background color.

Topics

Flattening 8-bit Images

vImageFlatten_ARGB8888

Performs an alpha composite of an ARGB8888 image over a solid background color.

vImageFlatten_ARGB8888ToRGB888

Transforms an ARGB8888 image to an RGB888 image against an opaque background of the provided color.

vImageFlatten_BGRA8888ToRGB888

Transforms a BGRA8888 image to an RGB888 image against an opaque background of the provided color.

vImageFlatten_RGBA8888

Performs an alpha composite of an RGBA8888 image over a solid background color.

vImageFlatten_RGBA8888ToRGB888

Transforms an RGBA8888 image to an RGB888 image against an opaque background of the provided color.

vImageFlatten_BGRA8888ToBGR888

Transforms a BGRA8888 image to a BGR888 image against an opaque background of the provided color.

vImageFlatten_RGBA8888ToBGR888

Transforms a BGRA8888 image to a BGR888 image against an opaque background of the provided color.

Flattening 16-bit Images

vImageFlatten_ARGB16Q12

Performs an alpha composite of an ARGB16Q12 image over a solid background color.

vImageFlatten_ARGB16U

Performs an alpha composite of an ARGB16U image over a solid background color.

vImageFlatten_RGBA16Q12

Performs an alpha composite of an RGBA16Q12 image over a solid background color.

vImageFlatten_RGBA16U

Performs an alpha composite of an RGBA16U image over a solid background color.

Flattening 32-bit Images

vImageFlatten_ARGBFFFF

Performs an alpha composite of an ARGBFFFF image over a solid background color.

vImageFlatten_ARGBFFFFToRGBFFF

Transforms an ARGBFFFF image to an RGBFFF image against an opaque background of the provided color.

vImageFlatten_BGRAFFFFToRGBFFF

Transforms a BGRAFFFF image to an RGBFFF image against an opaque background of the provided color.

vImageFlatten_RGBAFFFF

Performs an alpha composite of an RGBAFFFF image over a solid background color.

vImageFlatten_RGBAFFFFToRGBFFF

Transforms an RGBAFFFF image to an RGB888 image against an opaque background of the provided color.