Core2D.Style.ArgbColor.FromUInt32 C# (CSharp) Method

FromUInt32() public static method

Creates a ArgbColor from an integer.
public static FromUInt32 ( uint value ) : ArgbColor
value uint The integer value.
return ArgbColor
        public static ArgbColor FromUInt32(uint value)
        {
            return new ArgbColor
            {
                A = (byte)((value >> 24) & 0xff),
                R = (byte)((value >> 16) & 0xff),
                G = (byte)((value >> 8) & 0xff),
                B = (byte)(value & 0xff),
            };
        }