Exemple #1
0
        public void PixelBufferAssign()
        {
            tlog.Debug(tag, $"PixelBufferAssign START");

            using (PixelBuffer pixelBuffer = new PixelBuffer(100, 50, PixelFormat.BGR8888))
            {
                var testingTarget = pixelBuffer.Assign(pixelBuffer);
                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
                Assert.IsInstanceOf <PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");

                var result = testingTarget.GetPixelFormat();
                Assert.AreEqual(PixelFormat.BGR8888, result, "Should be equal!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"PixelBufferAssign END (OK)");
        }