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.
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA

공개 메소드들

메소드 설명
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