---
title: "make(format:matrix:chromaSiting:colorSpace:alphaIsOpaqueHint:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vimagecvimageformat/make(format:matrix:chromasiting:colorspace:alphaisopaquehint:)"
---

# make(format:matrix:chromaSiting:colorSpace:alphaIsOpaqueHint:)

Creates the description of image encoding in a Core Video pixel buffer from the specified properties.

## Declaration

```swift
static func make(format: vImageCVImageFormat.Format, matrix: vImage_ARGBToYpCbCrMatrix, chromaSiting: vImageCVImageFormat.ChromaSiting, colorSpace: CGColorSpace, alphaIsOpaqueHint: Bool) -> vImageCVImageFormat?
```

## Parameters

- `format`: The format type of the image.
- `matrix`: A doc://com.apple.accelerate/documentation/Accelerate/vImage_ARGBToYpCbCrMatrix that describes the conversion from RGB to the YpCbCr format.
- `chromaSiting`: The chrominance location.
- `colorSpace`: The color space of RGB and monochrome images. For YpCbCr images, this is the color space of the RGB image before conversion to YpCbCr using the ARGB-to-YpCbCr conversion matrix. The YpCbCr format RGB primaries and transfer function define the color space.
- `alphaIsOpaqueHint`: A hint that indicates that the function interprets an image with an alpha channel as opaque.

## Return Value

Return Value A vImageCVImageFormat instance encoded with the function’s parameters.

## Discussion

Discussion This function derives values that parameters from the image format type don’t specify, such as the number of channels, channel names, and channel descriptions.

## See Also

### Related Documentation

- [vImageCVImageFormat_Create(_:_:_:_:_:)](accelerate/vimagecvimageformat_create(_:_:_:_:_:).md)

### Creating a Core Video image format

- [make(buffer:)](accelerate/vimagecvimageformat/make(buffer:).md)
- [make(format:colorSpace:alphaIsOpaqueHint:)](accelerate/vimagecvimageformat/make(format:colorspace:alphaisopaquehint:).md)
