Scoop API

scoop:scoop.graphics:0.1.0

OffscreenSurface

class OffscreenSurface

source · line 6
public
public class OffscreenSurface internal constructor(private val target: RenderTarget) : Closeable

Independent pixels compatible with the canvas that created this surface.

function snapshot

source · line 13
public
public fun snapshot(): Image

Keeps GPU pixels on their context; later draws cannot change this image.