---
title: "init(image:options:)"
framework: coreimage
role: symbol
role_heading: Initializer
path: "coreimage/cisampler/init(image:options:)"
---

# init(image:options:)

Initializes the sampler with an image object using options specified in a dictionary.

## Declaration

```swift
init(image im: CIImage, options dict: [AnyHashable : Any]? = nil)
```

## Parameters

- `im`: The image to initialize the sampler with.
- `dict`: A dictionary that contains options specified as key-value pairs. See doc://com.apple.coreimage/documentation/CoreImage/sampler-option-keys.

## See Also

### Initializing a Sampler

- [init(image:)](coreimage/cisampler/init(image:).md)
