System.Drawing.PixelData.GetIntensityByte C# (CSharp) 메소드

GetIntensityByte() 공개 메소드

Gets the luminance intensity of the pixel based on the values of the red, green, and blue components. Alpha is ignored.
public GetIntensityByte ( ) : byte
리턴 byte
        public byte GetIntensityByte()
        {
            return (byte)((7471 * B + 38470 * G + 19595 * R) >> 16);
        }