public void Draw(Renderer.BaseRenderer r) { lock (this) { SizeF pSize = Format.GetPixelSize(); if (Background != null) { Background.Draw(r, Format, Border, Util.ApplyFilter(BackgroundColor1, this.Filter), Util.ApplyFilter(BackgroundColor2, this.Filter)); } if (ShowDate) { r.DrawText(CreationTime.ToLongDateString() + " " + CreationTime.ToShortTimeString(), PBrush.CreateSolid(Util.ApplyFilter(BackgroundColor1, this.Filter)), new RectangleF(Border + 1, Border - 5, 300, 50), 2); } for (int i = 0; i < lines.Count; i++) { if (lines[i] is Forms.TransformableForm) { ((Forms.TransformableForm)lines[i]).RenderTransformed(r); } else if (!(lines[i] is Forms.IBackground)) { lines[i].Render(r); if (Configuration.ShowLineBoundingBoxes) { r.DrawRect(Color.Green, 1, lines[i].Bounds); } } } } }