<!--
{
  "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_CopyChannelDescription(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageCVImageFormat_CopyChannelDescription"
  },
  "title" : "vImageCVImageFormat_CopyChannelDescription(_:_:_:)"
}
-->

# vImageCVImageFormat_CopyChannelDescription(_:_:_:)

Copies the channel description for a particular channel type to an image format.

```
func vImageCVImageFormat_CopyChannelDescription(_ format: vImageCVImageFormat, _ desc: UnsafePointer<vImageChannelDescription>, _ type: vImageBufferTypeCode) -> vImage_Error
```

## Parameters

`format`

The [`vImageCVImageFormat`](/documentation/Accelerate/vImageCVImageFormat) to copy the channel description into.

`desc`

A pointer to a new [`vImageChannelDescription`](/documentation/Accelerate/vImageChannelDescription) to use for the channel type.

`type`

The type of the channel that you want to set information about, for example, [`kvImageBufferTypeCode_Luminance`](/documentation/Accelerate/kvImageBufferTypeCode_Luminance).

## Return Value

[`kvImageNoError`](/documentation/Accelerate/kvImageNoError); otherwise, one of the error codes in <doc://com.apple.documentation/documentation/Accelerate/data-types-and-constants>.

## Discussion

---

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)