Struct Rgba32

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 A

Field Value

byte

B

Gets or sets the blue component.

public byte B

Field Value

byte

G

Gets or sets the green component.

public byte G

Field Value

byte

R

Gets or sets the red component.

public byte R

Field Value

byte

Methods

Equals(object?)

public override readonly bool Equals(object? obj)

Parameters

obj object ?

Returns

bool

Equals(Rgba32)

public readonly bool Equals(Rgba32 other)

Parameters

other Rgba32

Returns

bool

FromRgba32(Rgba32)

static Rgba32 FromRgba32(Rgba32 source)

Parameters

source Rgba32

Returns

Rgba32

FromScaledVector4(Vector4)

static Rgba32 FromScaledVector4(Vector4 source)

Parameters

source Vector4

Returns

Rgba32

FromUnscaledVector4(Vector4)

static Rgba32 FromUnscaledVector4(Vector4 source)

Parameters

source Vector4

Returns

Rgba32

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToScaledVector4()

public readonly Vector4 ToScaledVector4()

Returns

Vector4

ToString()

public override readonly string ToString()

Returns

string

ToUnscaledVector4()

public readonly Vector4 ToUnscaledVector4()

Returns

Vector4

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

bool

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

bool

true if the left parameter is not equal to the right parameter; otherwise, false. </rgba32></rgba32>