C# Class NewTOAPIA.Graphics.NTSCGray

This class peforms color space conversions. It will take RGB color values and turn them into Luminance values. The Luminance is calculated assuming HDTV CRTs and Phosphors. It operates by creating arrays of lookup values based on component contribution factors. The actual conversion is a lookup in the arrays.
Mostrar archivo Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
ToLuminance ( BGRb src ) : byte
ToLuminance ( byte red, byte green, byte blue ) : byte

Convert three byte values of Red, Green, Blue, into their luminace values. The returned result is guaranteed to be in the range of [0 - 255] based on the calculation of the factor arrays.

Private Methods

Method Description
NTSCGray ( ) : System

Method Details

ToLuminance() public static method

public static ToLuminance ( BGRb src ) : byte
src BGRb
return byte

ToLuminance() public static method

Convert three byte values of Red, Green, Blue, into their luminace values. The returned result is guaranteed to be in the range of [0 - 255] based on the calculation of the factor arrays.
public static ToLuminance ( byte red, byte green, byte blue ) : byte
red byte A byte of red
green byte A byte of green
blue byte A byte of blue
return byte