Method GetLuminance
GetLuminance()
Computes the perceived brightness (luminance) of this color as a single 8-bit grayscale value. Uses Rec. 601 luma weights: 0.299 * R + 0.587 * G + 0.114 * B. The result is in the range 0 (black) to 255 (white).
public byte GetLuminance()
Returns
- byte
A byte representing the grayscale intensity of the color.