Class CArgb
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
CArgb(CArgb)
Copy-construct: a deep copy of other (the C++ copy constructor).
public CArgb(CArgb other)
Parameters
otherCArgb
Properties
A
The alpha component.
public byte A { get; set; }
Property Value
B
The blue component.
public byte B { get; set; }
Property Value
G
The green component.
public byte G { get; set; }
Property Value
R
The red component.
public byte R { get; set; }
Property Value
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
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(CArgb?, CArgb?)
public static bool operator ==(CArgb? l, CArgb? r)
Parameters
Returns
operator !=(CArgb?, CArgb?)
public static bool operator !=(CArgb? l, CArgb? r)