---
title: snapshotImage()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qcrenderer/snapshotimage()
---

# snapshotImage()

Returns an NSImage object of the current image in the OpenGL context associated with the renderer.

## Declaration

```swift
func snapshotImage() -> NSImage!
```

## Return Value

Return Value The snapshot image.

## See Also

### Taking Snapshot Images

- [createSnapshotImage(ofType:)](quartz/qcrenderer/createsnapshotimage(oftype:).md)
