public override void Paint(Section.GraphicsSettings gs, Rectangle clipRect) { Rectangle rc = DrawRectangle; Image image = Image; gs.Graphics.DrawImage(Image, new Point(rc.Left + (rc.Width - image.Width) / 2, rc.Top + (rc.Height - image.Height) / 2)); }
public override void Layout(Section.GraphicsSettings gs, Size maximumSize) { if (this.MinimumHeight < Image.Height) { this.MinimumHeight = Image.Height; } base.Layout(gs, maximumSize); }