PowerArgs.Cli.ConsolePixel.Sync C# (CSharp) Method

Sync() public method

public Sync ( ) : void
return void
        public void Sync()
        {
            this.LastDrawnValue = Value;
        }

Usage Example

Example #1
0
        private void DrawPixel(int x, int y, ConsolePixel pixel, ConsoleCharacter value)
        {
            x = Left + x;
            y = Top + y;

            if (Console.CursorLeft != x)
            {
                Console.CursorLeft = x;
            }

            if (Console.CursorTop != y)
            {
                Console.CursorTop = y;
            }

            if (Console.ForegroundColor != value.ForegroundColor)
            {
                Console.ForegroundColor = value.ForegroundColor;
            }

            if (Console.BackgroundColor != value.BackgroundColor)
            {
                Console.BackgroundColor = value.BackgroundColor;
            }

            Console.Write(value.Value);

            if (pixel != null)
            {
                pixel.Sync();
            }
        }
All Usage Examples Of PowerArgs.Cli.ConsolePixel::Sync
ConsolePixel