---
title: "convert(to:channelOrdering:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/convert(to:channelordering:)-1nll2"
---

# convert(to:channelOrdering:)

Converts the 32-bit-per-channel RGBA or ARGB pixel buffer to RGB.

## Declaration

```swift
func convert(to destination: vImage.PixelBuffer<vImage.InterleavedFx3>, channelOrdering: vImage.ChannelOrdering)
```

## Parameters

- `destination`: The destination pixel buffer.
- `channelOrdering`: An enumeration that specifies whether the source is either ARGB or RGBA.

## See Also

### Conversion from four channels to three channels

- [convert(to:channelOrdering:)](accelerate/vimage/pixelbuffer/convert(to:channelordering:)-9h53.md)
