<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 8.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageCVImageFormat_SetAlphaHint(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageCVImageFormat_SetAlphaHint"
  },
  "title" : "vImageCVImageFormat_SetAlphaHint(_:_:)"
}
-->

# vImageCVImageFormat_SetAlphaHint(_:_:)

Sets the alpha hint of a Core Video image format.

```
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`](/documentation/Accelerate/kvImageNoError); otherwise, one of the error codes in <doc://com.apple.documentation/documentation/Accelerate/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

[`alphaIsOpaqueHint`](/documentation/Accelerate/vImageCVImageFormat/alphaIsOpaqueHint)

The alpha hint of the Core Video image format.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)