---
title: "imageWithData:options:"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/ciimage/imagewithdata:options:"
---

# imageWithData:options:

Creates and returns an image object initialized with the supplied image data, using the specified options.

## Declaration

```occ
+ (CIImage *) imageWithData:(NSData *) data options:(NSDictionary<NSString *,id> *) options;
```

## Parameters

- `data`: A pointer to the image data. The data must be premultiplied.
- `options`: A dictionary specifying image options. (See Image Dictionary Keys.)

## Return Value

Return Value An image object initialized with the supplied data and set up with the specified options.

## See Also

### Creating an Image

- [empty()](coreimage/ciimage/empty().md)
- [init(image:)](coreimage/ciimage/init(image:).md)
- [init(image:options:)](coreimage/ciimage/init(image:options:).md)
- [init(contentsOf:)](coreimage/ciimage/init(contentsof:).md)
- [imageWithContentsOfURL:](coreimage/ciimage/imagewithcontentsofurl:.md)
- [init(contentsOf:options:)](coreimage/ciimage/init(contentsof:options:).md)
- [imageWithContentsOfURL:options:](coreimage/ciimage/imagewithcontentsofurl:options:.md)
- [imageWithCGImage:](coreimage/ciimage/imagewithcgimage:.md)
- [init(cgImage:)](coreimage/ciimage/init(cgimage:)-2kvvb.md)
- [imageWithCGImage:options:](coreimage/ciimage/imagewithcgimage:options:.md)
- [init(cgImage:options:)](coreimage/ciimage/init(cgimage:options:)-8663h.md)
- [imageWithCGImageSource:index:options:](coreimage/ciimage/imagewithcgimagesource:index:options:.md)
- [init(cgImageSource:index:options:)](coreimage/ciimage/init(cgimagesource:index:options:)-e2bz.md)
- [imageWithData:](coreimage/ciimage/imagewithdata:.md)
- [init(data:)](coreimage/ciimage/init(data:).md)
