protected override void OnRenderSkinFormBackground(SkinFormBackgroundRenderEventArgs e)
 {
     //Graphics g = e.Graphics;
     //Rectangle rect = e.ClipRectangle;
     //e.SkinForm.BackgroundImageLayout = ImageLayout.Tile;
     //DrawFormBackground(g, rect , e.SkinForm .Radius , e.SkinForm.RoundStyle );
 }
Пример #2
0
 protected override void OnRenderSkinFormBackground(SkinFormBackgroundRenderEventArgs e)
 {
     //Graphics g = e.Graphics;
     //Rectangle rect = e.ClipRectangle;
     //e.SkinForm.BackgroundImageLayout = ImageLayout.Tile;
     //DrawFormBackground(g, rect , e.SkinForm .Radius , e.SkinForm.RoundStyle );
 }
Пример #3
0
        public void DrawSkinFormBackground(
            SkinFormBackgroundRenderEventArgs e)
        {
            OnRenderSkinFormBackground(e);
            SkinFormBackgroundRenderEventHandler handle =
                Events[EventRenderSkinFormBackground]
                as SkinFormBackgroundRenderEventHandler;

            if (handle != null)
            {
                handle(this, e);
            }
        }
        protected override void OnRenderSkinFormBackground(
            SkinFormBackgroundRenderEventArgs e)
        {
            Graphics  g    = e.Graphics;
            Rectangle rect = e.ClipRectangle;
            SkinForm  form = e.SkinForm;

            using (AntiAliasGraphics antiGraphics = new AntiAliasGraphics(g))
            {
                using (Brush brush = new SolidBrush(ColorTable.Back))
                {
                    using (GraphicsPath path = GraphicsPathHelper.CreatePath(
                               rect, form.Radius, form.RoundStyle, false))
                    {
                        g.FillPath(brush, path);
                    }
                }
            }
        }
Пример #5
0
 protected abstract void OnRenderSkinFormBackground(
     SkinFormBackgroundRenderEventArgs e);
Пример #6
0
 protected abstract void OnRenderSkinFormBackground(
     SkinFormBackgroundRenderEventArgs e);
Пример #7
0
 public void DrawSkinFormBackground(
     SkinFormBackgroundRenderEventArgs e)
 {
     OnRenderSkinFormBackground(e);
     SkinFormBackgroundRenderEventHandler handle =
         Events[EventRenderSkinFormBackground] 
         as SkinFormBackgroundRenderEventHandler;
     if (handle != null)
     {
         handle(this, e);
     }
 }
 protected override void OnRenderSkinFormBackground(
     SkinFormBackgroundRenderEventArgs e)
 {
     Graphics g = e.Graphics;
     Rectangle rect = e.ClipRectangle;
     SkinForm form = e.SkinForm;
     using (AntiAliasGraphics antiGraphics = new AntiAliasGraphics(g))
     {
         using (Brush brush = new SolidBrush(ColorTable.Back))
         {
             using (GraphicsPath path = GraphicsPathHelper.CreatePath(
                 rect, form.Radius, form.RoundStyle, false))
             {
                 g.FillPath(brush, path);
             }
         }
     }
 }