Class StencilBitmap
public sealed class StencilBitmap : IDisposable
- Inheritance
-
StencilBitmap
- Implements
- Inherited Members
Constructors
StencilBitmap(int, int)
public StencilBitmap(int width, int height)
Parameters
Fields
Height
public readonly int Height
Field Value
Stride
public readonly int Stride
Field Value
Width
public readonly int Width
Field Value
Properties
this[int, int]
public ushort this[int x, int y] { get; set; }
Parameters
Property Value
Pixels
public ushort* Pixels { get; }
Property Value
Span
public Span<ushort> Span { get; }
Property Value
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
valueushort
FillRect(in Rect, ushort)
public void FillRect(in Rect rect, ushort value)
Parameters
~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)