<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 7.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageCGImageFormat_IsEqual(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageCGImageFormat_IsEqual"
  },
  "title" : "vImageCGImageFormat_IsEqual(_:_:)"
}
-->

# vImageCGImageFormat_IsEqual(_:_:)

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

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

## Parameters

`f1`

The first [`vImage_CGImageFormat`](/documentation/Accelerate/vImage_CGImageFormat) structure. If [`colorSpace`](/documentation/Accelerate/vImage_CGImageFormat/colorSpace) is `nil`, the function uses sRGB.

`f2`

The second [`vImage_CGImageFormat`](/documentation/Accelerate/vImage_CGImageFormat) structure. If [`colorSpace`](/documentation/Accelerate/vImage_CGImageFormat/colorSpace) is `nil`, the function uses sRGB.

## Return Value

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

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)