---
title: vImage_CGImageFormat
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/vimage_cgimageformat
---

# vImage_CGImageFormat

The description of a Core Graphics image.

## Declaration

```swift
struct vImage_CGImageFormat
```

## Mentioned in

Converting bitmap data between Core Graphics images and vImage buffers Applying flood fills to an image Building a basic image conversion workflow Converting chroma-subsampled images Optimizing image-processing performance Transforming an image in three dimensions

## Overview

Overview This structure describes the ordering and number of the color channels, the size and type of the data in the color channels, and alpha information. This format mirrors the image format descriptors that Core Graphics uses to create objects, such as CGImage and CGContext.

## Topics

### Initializers

- [init(bitsPerComponent:bitsPerPixel:colorSpace:bitmapInfo:version:decode:renderingIntent:)](accelerate/vimage_cgimageformat/init(bitspercomponent:bitsperpixel:colorspace:bitmapinfo:version:decode:renderingintent:).md)
- [init(bitsPerComponent:bitsPerPixel:colorSpace:bitmapInfo:renderingIntent:)](accelerate/vimage_cgimageformat/init(bitspercomponent:bitsperpixel:colorspace:bitmapinfo:renderingintent:).md)
- [init(cgImage:)](accelerate/vimage_cgimageformat/init(cgimage:).md)
- [init()](accelerate/vimage_cgimageformat/init().md)

### Instance properties

- [bitsPerComponent](accelerate/vimage_cgimageformat/bitspercomponent.md)
- [bitsPerPixel](accelerate/vimage_cgimageformat/bitsperpixel.md)
- [colorSpace](accelerate/vimage_cgimageformat/colorspace.md)
- [bitmapInfo](accelerate/vimage_cgimageformat/bitmapinfo.md)
- [version](accelerate/vimage_cgimageformat/version.md)
- [decode](accelerate/vimage_cgimageformat/decode.md)
- [renderingIntent](accelerate/vimage_cgimageformat/renderingintent.md)
- [componentCount](accelerate/vimage_cgimageformat/componentcount.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
