---
title: "convert(to:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/convert(to:)-6ci2d"
---

# convert(to:)

Converts the contents of the 8-bit-per-channel, 4-channel interleaved pixel buffer to floating-point 16-bit-per-channel format.

## Declaration

```swift
func convert(to destination: vImage.PixelBuffer<vImage.Interleaved16Fx4>)
```

## Parameters

- `destination`: The destination pixel buffer.

## Discussion

Discussion This function converts the source values in the range [0, 255] to the destination range [0.0, 1.0].

## See Also

### Conversion from 8-bit to 16-bit

- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-3wpdu.md)
- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-4v16.md)
- [convert(to:)](accelerate/vimage/pixelbuffer/convert(to:)-9j6eu.md)
