createSnapshotImage(ofType:)
Returns the current image in the OpenGL context associated with the renderer, as an image object of the provided image type.
Declaration
func createSnapshotImage(ofType type: String!) -> Any!Parameters
- type:
A string that specifies any of the following image types: Nsbitmapimagerep, Nsimage, 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.