Class RawImage
Namespace: Aspose.Medical.Imaging
Assembly: Aspose.Medical.dll (25.11.0)
A raw BGRA 32 bit (8-bit unsigned normalized values ranging from 0 to 255) image. The color components are stored in blue, green, red, and alpha order (least significant to most significant byte).
public sealed class RawImage : IRawImageInheritance
Implements
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
RawImage(Bgra32[], int, int)
Initializes a new instance of the Aspose.Medical.Imaging.RawImage.
public RawImage(Bgra32[] pixels, int width, int height)Parameters
pixels Bgra32
[]
The 1D list of image pixels.
width int
The number of elements in a row.
height int
The number of rows.
Exceptions
width or height is negative.
The length of pixels doesn’t match with the given width and height.
Properties
Height
The image height in px units. Read-only System.Int32.
public int Height { get; }Property Value
Pixels
The image’s pixels. Read-only Aspose.Medical.Imaging.PixelFormats.Bgra32’s array.
public Memory<bgra32> Pixels { get; }Property Value
Width
The image width in px units. Read-only System.Int32.
public int Width { get; }Property Value
this[int, int]
Gets or sets the pixel at the specified position.
public Bgra32 this[int x, int y] { get; }Property Value
Exceptions
Thrown when the provided (x,y) coordinates are outside the image boundary.
Methods
ToString()
public override string ToString()