---
title: imageData
framework: watchkit
role: symbol
role_heading: Instance Property
path: watchkit/wkimage/imagedata
---

# imageData

The data object containing the raw image data.

## Declaration

```swift
var imageData: Data? { get }
```

## Discussion

Discussion The value in this property is set using the init(imageData:) method. For image objects created using other methods, this property is nil.

## See Also

### Getting the Image Data

- [image](watchkit/wkimage/image.md)
- [imageName](watchkit/wkimage/imagename.md)
