LitDev.LDColours.GetBlue C# (CSharp) Method

GetBlue() public static method

Get the Blue component of a colour.
public static GetBlue ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
return Primitive
        public static Primitive GetBlue(Primitive colour)
        {
            try
            {
                return ((Media.Color)Media.ColorConverter.ConvertFromString(colour)).B;
            }
            catch (Exception ex)
            {
                Utilities.OnError(Utilities.GetCurrentMethod(), ex);
                return 0;
            }
        }