Table of Contents

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

TPixel

The pixel format.

Properties

Bounds

Gets the frame bounds in root target coordinates.

Rectangle Bounds { get; }

Property Value

Rectangle

Methods

TryGetCpuRegion(out Buffer2DRegion<TPixel>)

Attempts to get a CPU-accessible destination region.

bool TryGetCpuRegion(out Buffer2DRegion<TPixel> region)

Parameters

region Buffer2DRegion<TPixel>

The CPU region when available.

Returns

bool

true when a CPU region is available.

TryGetNativeSurface(out NativeSurface?)

Attempts to get an opaque native destination surface.

bool TryGetNativeSurface(out NativeSurface? surface)

Parameters

surface NativeSurface

The native surface when available.

Returns

bool

true when a native surface is available.