---
title: "vImageCGImageFormat_IsEqual(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimagecgimageformat_isequal(_:_:)"
---

# vImageCGImageFormat_IsEqual(_:_:)

Returns a Boolean value that indicates whether two vImage Core Graphics image formats are equal.

## Declaration

```swift
func vImageCGImageFormat_IsEqual(_ f1: UnsafePointer<vImage_CGImageFormat>!, _ f2: UnsafePointer<vImage_CGImageFormat>!) -> Bool
```

## Parameters

- `f1`: The first doc://com.apple.accelerate/documentation/Accelerate/vImage_CGImageFormat structure. If doc://com.apple.accelerate/documentation/Accelerate/vImage_CGImageFormat/colorSpace is nil, the function uses sRGB.
- `f2`: The second doc://com.apple.accelerate/documentation/Accelerate/vImage_CGImageFormat structure. If doc://com.apple.accelerate/documentation/Accelerate/vImage_CGImageFormat/colorSpace is nil, the function uses sRGB.

## Return Value

Return Value A Boolean value that indicates whether two vImage Core Graphics image formats are equal.

## See Also

### Querying Core Graphics image format attributes

- [vImageCGImageFormat_GetComponentCount(_:)](accelerate/vimagecgimageformat_getcomponentcount(_:).md)
