Beispiel #1
0
        public static FastColor FromInt(int Val)
        {
            FastColorUnion Union = new FastColorUnion();

            Union.Val = Val;
            return(new FastColor(Union.R, Union.G, Union.B, (byte)(255 - Union.A)));
        }
Beispiel #2
0
        public int ToInt()
        {
            FastColorUnion Union = new FastColorUnion();

            Union.R = R;
            Union.G = G;
            Union.B = B;
            Union.A = (byte)(255 - A);
            return(Union.Val);
        }