Beispiel #1
0
        public void Color_Types_To_BgrBytes_Produce_Equal_OutPut()
        {
            Color       color       = new Color(24, 48, 96, 192);
            ColorVector colorVector = new ColorVector(24, 48, 96, 192);

            byte[] bgr       = new byte[3];
            byte[] bgrVector = new byte[3];

            color.ToZyxBytes(bgr, 0);
            colorVector.ToZyxBytes(bgrVector, 0);

            Assert.Equal(bgr, bgrVector);
        }