ARCed.Core.QColorMatrix.Vector2Color C# (CSharp) Method

Vector2Color() public static method

Converts a vector array to a Color object.
public static Vector2Color ( float vector ) : Color
vector float Floar array vector
return Color
        public static Color Vector2Color(float[] vector)
        {
            if (vector == null || (vector.Length < 4))
            {
                throw new ArgumentException();
            }
            return Color.FromArgb((int)vector[3], (int)vector[0], (int)vector[1], (int)vector[2]);
        }