Skip to content

IRenderDevice.TryReadPixels method

Copies the pixels of source as BGRA32 rows spaced destinationStrideBytes apart into destination; returns false when the surface is not CPU-readable or the destination is too small.

public bool TryReadPixels(IRenderSurface source, Span<byte> destination, int destinationStrideBytes)