Ejemplo n.º 1
0
        // Single Convert RGB-reversed to ColorRef

        public static UniColor BGRAToColor(BGRADATA Bits)
        {
            var tibs = new ARGBDATA();

            tibs.Alpha = Bits.Alpha;
            tibs.Red   = Bits.Red;
            tibs.Blue  = Bits.Blue;
            tibs.Green = Bits.Green;
            return(ARGBToColor(tibs));
        }
Ejemplo n.º 2
0
        public static void ColorToBGRA(UniColor Color, out BGRADATA bits)
        {
            var tibs = new ARGBDATA();

            ColorToARGB(Color, out tibs);
            bits.Alpha = tibs.Blue;
            bits.Blue  = tibs.Blue;
            bits.Red   = tibs.Red;
            bits.Green = tibs.Green;
        }