Пример #1
0
        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));
        }
Пример #2
0
 public override void Layout(Section.GraphicsSettings gs, Size maximumSize)
 {
     if (this.MinimumHeight < Image.Height)
     {
         this.MinimumHeight = Image.Height;
     }
     base.Layout(gs, maximumSize);
 }