Contents

vImageCVImageFormat_SetAlphaHint(_:_:)

Sets the alpha hint of a Core Video image format.

Declaration

func vImageCVImageFormat_SetAlphaHint(_ format: vImageCVImageFormat, _ alphaIsOne: Int32) -> vImage_Error

Parameters

  • format:

    The Core Video image format to update.

  • alphaIsOne:

    The new value of the alpha hint.

Return Value

kvImageNoError; otherwise, one of the error codes in Data Types and Constants.

Discussion

When an image format contains an alpha channel, but the image is fully opaque, set this property to a nonzero value.

See Also

Related Documentation

Querying and setting the alpha hint