Struct Rgba32
Namespace: Aspose.Medical.Imaging.PixelFormats
Assembly: Aspose.Medical.dll (25.11.0)
Packed pixel: contains four 8-bit unsigned normalized values [0..255]. The components are stored in Red, Green, Blue, and Alpha order (least significant to most significant byte). NOTE: the structure is mutable.
public struct Rgba32 : IPixel<rgba32>, IEquatable<rgba32>Implements
IPixel<rgba32> , IEquatable<rgba32>
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Fields
A
Gets or sets the alpha component.
public byte AField Value
B
Gets or sets the blue component.
public byte BField Value
G
Gets or sets the green component.
public byte GField Value
R
Gets or sets the red component.
public byte RField Value
Methods
Equals(object?)
public override readonly bool Equals(object? obj)Parameters
obj object
?
Returns
Equals(Rgba32)
public readonly bool Equals(Rgba32 other)Parameters
other Rgba32
Returns
FromRgba32(Rgba32)
static Rgba32 FromRgba32(Rgba32 source)Parameters
source Rgba32
Returns
FromScaledVector4(Vector4)
static Rgba32 FromScaledVector4(Vector4 source)Parameters
source Vector4
Returns
FromUnscaledVector4(Vector4)
static Rgba32 FromUnscaledVector4(Vector4 source)Parameters
source Vector4
Returns
GetHashCode()
public override readonly int GetHashCode()Returns
ToScaledVector4()
public readonly Vector4 ToScaledVector4()Returns
ToString()
public override readonly string ToString()Returns
ToUnscaledVector4()
public readonly Vector4 ToUnscaledVector4()Returns
Operators
operator ==(Rgba32, Rgba32)
Compares two Aspose.Medical.Imaging.PixelFormats.Bgra32 objects for equality.
public static bool operator ==(Rgba32 left, Rgba32 right)Parameters
left Rgba32
The Aspose.Medical.Imaging.PixelFormats.Bgra32 on the left side of the operand.
right Rgba32
The Aspose.Medical.Imaging.PixelFormats.Bgra32 on the right side of the operand.
Returns
true if the left parameter is equal to the right parameter;
otherwise, false.
operator !=(Rgba32, Rgba32)
Compares two Aspose.Medical.Imaging.PixelFormats.Bgra32 objects for equality.
public static bool operator !=(Rgba32 left, Rgba32 right)Parameters
left Rgba32
The Aspose.Medical.Imaging.PixelFormats.Bgra32 on the left side of the operand.
right Rgba32
The Aspose.Medical.Imaging.PixelFormats.Bgra32 on the right side of the operand.
Returns
true if the left parameter is not equal to the right
parameter;
otherwise, false.
</rgba32></rgba32>