---
title: "vImageCVImageFormat_CopyChannelDescription(_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimagecvimageformat_copychanneldescription(_:_:_:)"
---

# vImageCVImageFormat_CopyChannelDescription(_:_:_:)

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

## Declaration

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

## Parameters

- `format`: The doc://com.apple.accelerate/documentation/Accelerate/vImageCVImageFormat to copy the channel description into.
- `desc`: A pointer to a new doc://com.apple.accelerate/documentation/Accelerate/vImageChannelDescription to use for the channel type.
- `type`: The type of the channel that you want to set information about, for example, doc://com.apple.accelerate/documentation/Accelerate/kvImageBufferTypeCode_Luminance.

## Return Value

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

## Discussion

Discussion

## See Also

### Querying and setting channel information

- [vImageCVImageFormat_GetChannelCount(_:)](accelerate/vimagecvimageformat_getchannelcount(_:).md)
- [vImageCVImageFormat_GetChannelDescription(_:_:)](accelerate/vimagecvimageformat_getchanneldescription(_:_:).md)
- [vImageCVImageFormat_GetChannelNames(_:)](accelerate/vimagecvimageformat_getchannelnames(_:).md)
- [vImageChannelDescription](accelerate/vimagechanneldescription.md)
