Table of Contents

Method GetLuminance

Namespace
LMKit.Graphics.Primitives
Assembly
LM-Kit.NET.dll

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.

public byte GetLuminance()

Returns

byte

A byte in the range 0..255 representing the grayscale intensity of the color.