Skip to content

FilterResult.ReadPixels method

CPU-side pixel access (BGRA32). For GPU-backed results, the first call may incur a GPU→CPU readback. Returned span has stride strideBytes and length PixelHeight × strideBytes. The buffer is owned by the result and remains valid until Dispose.

public abstract ReadOnlySpan<byte> ReadPixels(out int strideBytes)