Imager.sPixel.FromGrey C# (CSharp) Method

FromGrey() public static method

Factory to create a sPixel instance from grey value.
public static FromGrey ( byte grey, byte alpha = 255 ) : sPixel
grey byte The grey value.
alpha byte The alpha value.
return sPixel
        public static sPixel FromGrey(byte grey, byte alpha = 255)
        {
            return (new sPixel(grey, alpha));
        }