Skip to content

IExternalRasterSource interface

A raster resource owned outside the backend, such as a decoded video frame, that a backend imports without copying; Acquire leases it for one use.

public interface IExternalRasterSource : IDisposable, IRasterSource
name description
AlphaMode { get; } Gets the alpha mode of the pixels.
Capabilities { get; } Gets the surface capabilities the resource offers; ExternallySynchronized means the lease is what synchronizes access.
Format { get; } Gets the pixel format.
Planes { get; } Gets the planes of the resource.
YFlipped { get; } Gets whether row 0 is the bottom of the image.
Acquire() Leases the resource for the consuming backend; dispose the lease once the draw that reads it has been issued.