Imager.sPixel.FromRGBA C# (CSharp) Method

FromRGBA() public static method

Factory to create a sPixel instance from red, green and blue value.
public static FromRGBA ( byte red, byte green, byte blue, byte alpha = 255 ) : sPixel
red byte The red-value.
green byte The green-value.
blue byte The blue-value.
alpha byte The alpha-value.
return sPixel
        public static sPixel FromRGBA(byte red, byte green, byte blue, byte alpha = 255)
        {
            return (new sPixel(red, green, blue, alpha));
        }

Same methods

sPixel::FromRGBA ( int red, int green, int blue, int alpha = 255 ) : sPixel