Imager.sPixel.FromGrey C# (CSharp) Méthode

FromGrey() public static méthode

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.
Résultat sPixel
        public static sPixel FromGrey(byte grey, byte alpha = 255)
        {
            return (new sPixel(grey, alpha));
        }