internal void Paint(ConsoleBitmap context) { if (IsVisible == false) { return; } if (TransparentBackground == false) { context.Pen = new ConsoleCharacter(' ', null, Background); context.FillRect(0, 0, Width, Height); } OnPaint(context); }
protected void Compose(ConsoleControl control) { if (control.IsVisible == false) { return; } control.Paint(); foreach (var filter in control.RenderFilters) { filter.Control = control; filter.Filter(control.Bitmap); } if (control.CompositionMode == CompositionMode.PaintOver) { ComposePaintOver(control); } else if (control.CompositionMode == CompositionMode.BlendBackground) { ComposeBlendBackground(control); } else { ComposeBlendVisible(control); } }