Namespace: PdfSharp.BigGustave
A pixel in a Png image.
public struct Pixel
Inheritance Object → ValueType → Pixel
The red value for the pixel.
public byte R { get; }
The green value for the pixel.
public byte G { get; }
The blue value for the pixel.
public byte B { get; }
The alpha transparency value for the pixel.
public byte A { get; }
Whether the pixel is grayscale (if Pixel.R, Pixel.G and Pixel.B will all have the same value).
public bool IsGrayscale { get; }
Create a new Pixel.
Pixel(byte r, byte g, byte b, byte a, bool isGrayscale)
r
Byte
The red value for the pixel.
g
Byte
The green value for the pixel.
b
Byte
The blue value for the pixel.
a
Byte
The alpha transparency value for the pixel.
isGrayscale
Boolean
Whether the pixel is grayscale.
Create a new Pixel which has Pixel.IsGrayscale false and is fully opaque.
Pixel(byte r, byte g, byte b)
r
Byte
The red value for the pixel.
g
Byte
The green value for the pixel.
b
Byte
The blue value for the pixel.
Create a new grayscale Pixel.
Pixel(byte grayscale)
grayscale
Byte
The grayscale value.
bool Equals(object obj)
obj
Object
Whether the pixel values are equal.
bool Equals(Pixel other)
other
Pixel
The other pixel.
Boolean
if all pixel values are equal otherwise .
int GetHashCode()
string ToString()