Table of Contents

Class RGBABitmap

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

Constructors

RGBABitmap(int, int)

public RGBABitmap(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 uint this[int x, int y] { get; set; }

Parameters

x int
y int

Property Value

uint

Pixels

public uint* Pixels { get; }

Property Value

uint*

Span

public Span<uint> Span { get; }

Property Value

Span<uint>

VectorSpan

public Span<Vector<uint>> VectorSpan { get; }

Property Value

Span<Vector<uint>>

Methods

Dispose()

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

public void Dispose()

Fill(uint)

public void Fill(uint value = 0)

Parameters

value uint

FillRect(in Rect, uint)

public void FillRect(in Rect rect, uint value)

Parameters

rect Rect
value uint

~RGBABitmap()

protected ~RGBABitmap()

InitRect(in Rect, uint)

Initializes a rectangular region of the bitmap 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 rendering shapes or tiles.

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

Parameters

rect Rect

The region to initialize.

value uint

The fill color (default is transparent black).