Table of Contents

Class StencilBitmap

Namespace
Xui.Runtime.Software.Raster
Assembly
Xui.Runtime.Software.dll
public sealed class StencilBitmap : IDisposable
Inheritance
StencilBitmap
Implements
Inherited Members

Constructors

StencilBitmap(int, int)

public StencilBitmap(int width, int height)

Parameters

width int
height int

Fields

Height

public readonly int Height

Field Value

int

Stride

public readonly int Stride

Field Value

int

Width

public readonly int Width

Field Value

int

Properties

this[int, int]

public ushort this[int x, int y] { get; set; }

Parameters

x int
y int

Property Value

ushort

Pixels

public ushort* Pixels { get; }

Property Value

ushort*

Span

public Span<ushort> Span { get; }

Property Value

Span<ushort>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Fill(ushort)

public void Fill(ushort value = 0)

Parameters

value ushort

FillRect(in Rect, ushort)

public void FillRect(in Rect rect, ushort value)

Parameters

rect Rect
value ushort

~StencilBitmap()

protected ~StencilBitmap()

InitRect(in Rect, ushort)

Initializes a rectangular region of the stencil buffer using SIMD, aligned outward to the nearest vector boundary. This method may overdraw slightly beyond the specified rectangle for performance. Suitable for fast clearing of bounds when preparing coverage masks.

public void InitRect(in Rect rect, ushort value = 0)

Parameters

rect Rect

The region to initialize.

value ushort

The fill value (default is 0, meaning no coverage).