Skip to content

ScratchFilterResult class

A FilterResult backed by a scratch render surface rented from a pool. Dispose returns the surface via the supplied release callback.

public sealed class ScratchFilterResult : FilterResult
name description
ScratchFilterResult(…) Creates a result over lease; release, when given, runs on dispose instead of disposing the image and the lease directly.
override Bounds { get; }
override IsPremultiplied { get; }
override PixelHeight { get; }
override PixelWidth { get; }
override UnderlyingSurface { get; }
override AsImage()
Detach() Transfers the scratch allocation and its exact-once return authority to an opaque owner. Disposing this result after a successful detach is a no-op; the detached owner must be disposed to release the image and return the original lease.
override Dispose()
override ReadPixels(…)