Function

vImageCGImageFormat_GetComponentCount(_:)

Calculates the number of channels (color and alpha) for a given image format.

Declaration

func vImageCGImageFormat_GetComponentCount(_ format: UnsafePointer<vImage_CGImageFormat>) -> UInt32

Parameters

format

A valid vImage_CGImageFormat structure. If format->colorspace is NULL, the format is assumed to be sRGB.

Return Value

The number of color and alpha channels in the image.

See Also

Querying Core Graphics Image Format Attributes

func vImageCGImageFormat_IsEqual(UnsafePointer<vImage_CGImageFormat>!, UnsafePointer<vImage_CGImageFormat>!) -> Bool

Tests two vImage Core Graphics image formats to find out if they're equivalent.