Magick.NET-Q8-AnyCPU by Dirk Lemstra

<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="7.0.6.601" />

.NET API 2,106,880 bytes

 Pixel

public sealed class Pixel : IEquatable<Pixel>
Class that can be used to access an individual pixel of an image.
public int Channels { get; }

Gets the number of channels that the pixel contains.

public byte this[int channel] { get; set; }

Returns the value of the specified channel.

public int X { get; }

Gets the X coordinate of the pixel.

public int Y { get; }

Gets the Y coordinate of the pixel.

public Pixel(int x, int y, byte[] value)

Initializes a new instance of the Pixel class.

public Pixel(int x, int y, int channels)

Initializes a new instance of the Pixel class.

public static bool op_Equality(Pixel left, Pixel right)

Determines whether the specified Pixel instances are considered equal.

public static bool op_Inequality(Pixel left, Pixel right)

Determines whether the specified Pixel instances are not considered equal.

public bool Equals(Pixel other)

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

public byte GetChannel(int channel)

Returns the value of the specified channel.

public void Set(byte[] values)

Sets the values of this pixel.

public void SetChannel(int channel, byte value)

Set the value of the specified channel.

Converts the pixel to a color. Assumes the pixel is RGBA.