Interface ICanvasFrame<TPixel>
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Per-frame destination for DrawingCanvas<TPixel>.
public interface ICanvasFrame<TPixel> where TPixel : unmanaged, IPixel<TPixel>
Type Parameters
TPixelThe pixel format.
Properties
Bounds
Gets the frame bounds in root target coordinates.
Rectangle Bounds { get; }
Property Value
Methods
TryGetCpuRegion(out Buffer2DRegion<TPixel>)
Attempts to get a CPU-accessible destination region.
bool TryGetCpuRegion(out Buffer2DRegion<TPixel> region)
Parameters
regionBuffer2DRegion<TPixel>The CPU region when available.
Returns
TryGetNativeSurface(out NativeSurface?)
Attempts to get an opaque native destination surface.
bool TryGetNativeSurface(out NativeSurface? surface)
Parameters
surfaceNativeSurfaceThe native surface when available.