public override void DoOnPaint(Render.Graphics.IGraphics e) { if (this.renderTarget.Size.Height != this.Size.Height || this.renderTarget.Size.Width != this.Size.Width) this.renderTarget.Resize(this.Size); this.renderTarget.BeginDraw(); try { this.renderTarget.Clear(new Color4(this.BackColor)); e.DrawImage(this.BackgroundImage, this.DisplayRectangle); base.DoOnPaint(this.e); } finally { this.renderTarget.EndDraw(); } }