C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
NTSCGray ( ) : System

Описание методов

ToLuminance() публичный статический Метод

public static ToLuminance ( BGRb src ) : byte
src BGRb
Результат byte

ToLuminance() публичный статический Метод

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
Результат byte