---
title: vImageConverter
framework: accelerate
role: symbol
role_heading: Class
path: accelerate/vimageconverter
---

# vImageConverter

A description of a conversion from one image format to another.

## Declaration

```swift
class vImageConverter
```

## Mentioned in

Applying color transforms to images with a multidimensional lookup table Building a basic image conversion workflow Converting chroma-subsampled images

## Overview

Overview The vImageConverter class is an opaque type that contains information needed to do a rapid conversion from one image type to another. You use the converter creation functions, for example, vImageConverter_CreateWithCGImageFormat(_:_:_:_:_:), to create instances of converters. Sometimes, there can be an overhead when creating a converter, so create them in advance and reuse them. Converters are thread safe; that is, you can use the same object concurrently in multiple threads.

## Topics

### Instance Properties

- [destinationBufferCount](accelerate/vimageconverter/destinationbuffercount.md)
- [sourceBufferCount](accelerate/vimageconverter/sourcebuffercount.md)

### Instance Methods

- [convert(source:destination:flags:)](accelerate/vimageconverter/convert(source:destination:flags:).md)
- [mustOperateOutOfPlace(source:destination:flags:)](accelerate/vimageconverter/mustoperateoutofplace(source:destination:flags:).md)
- [destinationBuffers(colorSpace:)](accelerate/vimageconverter/destinationbuffers(colorspace:).md)
- [sourceBuffers(colorSpace:)](accelerate/vimageconverter/sourcebuffers(colorspace:).md)
- [convert(from:to:)](accelerate/vimageconverter/convert(from:to:)-9s7p7.md)
- [convert(from:to:)](accelerate/vimageconverter/convert(from:to:)-587gc.md)
- [makeCGToCVPixelBuffers(referencing:)](accelerate/vimageconverter/makecgtocvpixelbuffers(referencing:).md)
- [makeCVToCGPixelBuffers(referencing:)](accelerate/vimageconverter/makecvtocgpixelbuffers(referencing:).md)

### Type Methods

- [make(sourceFormat:destinationFormat:flags:)](accelerate/vimageconverter/make(sourceformat:destinationformat:flags:)-8iupf.md)
- [make(sourceFormat:destinationFormat:flags:)](accelerate/vimageconverter/make(sourceformat:destinationformat:flags:)-8tbym.md)
- [make(sourceFormat:destinationFormat:flags:)](accelerate/vimageconverter/make(sourceformat:destinationformat:flags:)-fub5.md)
- [make(sourceFormat:destinationFormat:colorConversionInfo:)](accelerate/vimageconverter/make(sourceformat:destinationformat:colorconversioninfo:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Creating a converter

- [vImageConverter_CreateWithCGImageFormat(_:_:_:_:_:)](accelerate/vimageconverter_createwithcgimageformat(_:_:_:_:_:).md)
- [vImageConverter_CreateWithCGColorConversionInfo(_:_:_:_:_:_:)](accelerate/vimageconverter_createwithcgcolorconversioninfo(_:_:_:_:_:_:).md)
- [vImageConverter_CreateForCGToCVImageFormat(_:_:_:_:_:)](accelerate/vimageconverter_createforcgtocvimageformat(_:_:_:_:_:).md)
- [vImageConverter_CreateForCVToCGImageFormat(_:_:_:_:_:)](accelerate/vimageconverter_createforcvtocgimageformat(_:_:_:_:_:).md)
- [vImageConverter_CreateWithColorSyncCodeFragment(_:_:_:_:_:_:)](accelerate/vimageconverter_createwithcolorsynccodefragment(_:_:_:_:_:_:).md)
