Exemple #1
0
        public LogDisplayModel Copy()
        {
            var tmp = new LogDisplayModel(Width, Height, ColorCount, BackColor)
            {
                Max = Max, Contrast = Contrast
            };

            CopyDisplay(tmp);
            return(tmp);
        }
Exemple #2
0
        private void CopyDisplay(LogDisplayModel toDisplay)
        {
            var d1 = _display.GetLength(0);
            var d2 = _display.GetLength(1);
            var d3 = _display.GetLength(2);

            for (var i = 0; i < d1; i++)
            {
                for (var j = 0; j < d2; j++)
                {
                    for (var k = 0; k < d3; k++)
                    {
                        toDisplay._display[i, j, k] = _display[i, j, k];
                    }
                }
            }
            toDisplay.RenderColorMode = RenderColorMode;
        }