Skip to content

IExternalRasterLease interface

A lease over an externally-managed GPU/CPU raster resource. Native handle semantics are defined by the producer/consumer pairing - typically a GPU texture handle belonging to the active rendering backend.

public interface IExternalRasterLease : IDisposable
name description
NativeAlternateHandle { get; } Optional secondary native handle aliasing the same resource as NativeHandle, for backends whose API pairs a second interface with the primary one; producers without a cached alternate return 0 and the consumer derives it from NativeHandle.
NativeHandle { get; } Primary native handle for the leased resource. Concrete meaning is API-paired with the consuming backend; 0 indicates the handle is unavailable.
PixelHeight { get; } Gets the height in device pixels.
PixelWidth { get; } Gets the width in device pixels.
YFlipped { get; } Gets whether row 0 is the bottom of the image.