<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImageAccumulator/init(extent:format:colorSpace:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImageAccumulator(im)initWithExtent:format:colorSpace:"
  },
  "title" : "init(extent:format:colorSpace:)"
}
-->

# init(extent:format:colorSpace:)

Initializes an image accumulator with the specified extent, pixel format, and color space.

```
init?(extent: CGRect, format: CIFormat, colorSpace: CGColorSpace)
```

## Parameters

`extent`

A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.

`format`

The format and size of each pixel. You must supply a pixel format constant, such askCIFormatARGB8  (32 bit-per-pixel, fixed-point pixel format) or kCIFormatRGBAf (128 bit-per-pixel, floating-point pixel format). See [`CIImage`](/documentation/CoreImage/CIImage) for more information about pixel format constants.

`colorSpace`

A <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace> object describing the color space for the image accumulator.

## Return Value

The initialized image accumulator object.

## See Also

[`+  imageAccumulatorWithExtent:format:`](/documentation/CoreImage/CIImageAccumulator/imageAccumulatorWithExtent:format:)

Creates an image accumulator with the specified extent and pixel format.



---

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)