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

# init(image:options:)

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

```
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 [Sampler Option Keys](/documentation/CoreImage/sampler-option-keys).

## See Also

[`initWithImage:keysAndValues:`](/documentation/CoreImage/CISampler/initWithImage:keysAndValues:)

Initializes the sampler with an image object using options specified as key-value pairs.



---

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)