---
title: image
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuiscreenshot/image
---

# image

A representation of the screenshot as a platform-native image object.

## Declaration

```swift
@NSCopying var image: UIImage { get }
```

```swift
@NSCopying var image: NSImage { get }
```

## See Also

### Screenshot representations

- [pngRepresentation](xcuiautomation/xcuiscreenshot/pngrepresentation.md)
