Skip to content

ScratchSurfaceLease class

A rented scratch surface together with its CPU pixel view; dispose it to drop the surface when it is not handed back through Return.

public sealed class ScratchSurfaceLease : IDisposable
name description
Pixels { get; } Gets the CPU pixel view of the surface.
Surface { get; } Gets the rented surface.
Dispose() Releases the lease: an active lease disposes its surface, a pooled one is dropped from tracking.