Table of Contents

Class CArgb

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

A color stored as r, g, b, a bytes.

public class CArgb : IDisposable
Inheritance
CArgb
Implements
Inherited Members

Constructors

CArgb()

public CArgb()

CArgb(byte, byte, byte, byte)

public CArgb(byte r, byte g, byte b, byte a)

Parameters

r byte
g byte
b byte
a byte

CArgb(CArgb)

Copy-construct: a deep copy of other (the C++ copy constructor).

public CArgb(CArgb other)

Parameters

other CArgb

Properties

A

The alpha component.

public byte A { get; set; }

Property Value

byte

B

The blue component.

public byte B { get; set; }

Property Value

byte

G

The green component.

public byte G { get; set; }

Property Value

byte

R

The red component.

public byte R { get; set; }

Property Value

byte

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(CArgb?, CArgb?)

public static bool operator ==(CArgb? l, CArgb? r)

Parameters

l CArgb
r CArgb

Returns

bool

operator !=(CArgb?, CArgb?)

public static bool operator !=(CArgb? l, CArgb? r)

Parameters

l CArgb
r CArgb

Returns

bool