---
title: "setImage(_:)"
framework: Core Image
role: symbol
role_heading: Instance Method
platforms: [iOS 9.0+, iPadOS 9.0+, Mac Catalyst 13.1+, macOS 10.4+, tvOS 9.0+, visionOS 1.0+]
path: "coreimage/ciimageaccumulator/setimage(_:)"
---

# setImage(_:)

Sets the contents of the image accumulator to the contents of the specified image object.

## Declaration

```swift
func setImage(_ image: CIImage)
```

## Parameters

- `image`: The image object whose contents you want to assign to the image accumulator.

## See Also

### Setting an Image

- [setImage(_:dirtyRect:)](coreimage/ciimageaccumulator/setimage(_:dirtyrect:).md)
