AlbLib.Imaging.ImageBase.ExtractLight C# (CSharp) Method

ExtractLight() public method

public ExtractLight ( ) : RawImage
return RawImage
        public RawImage ExtractLight()
        {
            byte[] res = new byte[ImageData.Length];
            for(int i = 0; i < res.Length; i++)
            {
                byte b = ImageData[i];
                if(b >= 192)
                    res[i] = b;
            }
            return new RawImage(res, GetWidth(), GetHeight());
        }

Same methods

ImageBase::ExtractLight ( RawImage &exported ) : bool