---
title: "init(extent:format:)"
framework: Core Image
role: symbol
role_heading: Initializer
platforms: [iOS 9.0+, iPadOS 9.0+, Mac Catalyst 13.1+, macOS 10.4+, tvOS 9.0+, visionOS 1.0+]
path: "coreimage/ciimageaccumulator/init(extent:format:)"
---

# init(extent:format:)

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

## Declaration

```swift
init?(extent: CGRect, format: CIFormat)
```

## 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 doc://com.apple.coreimage/documentation/CoreImage/CIImage for more information about pixel format constants.

## Return Value

Return Value The initialized image accumulator object.

## See Also

### Initializing an Image Accumulator

- [init(extent:format:colorSpace:)](coreimage/ciimageaccumulator/init(extent:format:colorspace:).md)
