Class G16Stencil
Represents a grayscale 16-bit stencil buffer for supersampled shape coverage.
public class G16Stencil
- Inheritance
-
G16Stencil
- Inherited Members
Constructors
G16Stencil(uint, uint)
public G16Stencil(uint width, uint height)
Parameters
Fields
Alpha
public readonly _G16[] Alpha
Field Value
- _G16[]
Properties
Height
public uint Height { get; }
Property Value
this[uint, uint]
public _G16 this[uint x, uint y] { get; set; }
Parameters
Property Value
Width
public uint Width { get; }
Property Value
Methods
Add(uint, uint, ushort)
Adds the specified coverage amount to a stencil pixel at (x,y), saturating at 65535.
public void Add(uint x, uint y, ushort amount = 1)
Parameters
AsBytes()
public ReadOnlySpan<byte> AsBytes()
Returns
Clear()
public void Clear()
Clear(uint, uint, uint, uint)
public void Clear(uint startX, uint startY, uint w, uint h)