<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCRenderer/createSnapshotImage(ofType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCRenderer(im)createSnapshotImageOfType:"
  },
  "title" : "createSnapshotImage(ofType:)"
}
-->

# createSnapshotImage(ofType:)

Returns the current image in the OpenGL context associated with the renderer, as an image object of the provided image type.

```
func createSnapshotImage(ofType type: String!) -> Any!
```

## Parameters

`type`

A string that specifies any of the following image types: <doc://com.apple.documentation/documentation/AppKit/NSBitmapImageRep>, <doc://com.apple.documentation/documentation/AppKit/NSImage>, <doc://com.apple.documentation/documentation/CoreImage/CIImage>, `CGImage`, `CVOpenGLBuffer`, `CVPixelBuffer`.

## Return Value

The snapshot image in the provided image type. You are responsible for releasing this object when you no longer need it.

---

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)