コード例 #1
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 );
 }
コード例 #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);
            }
        }
コード例 #4
0
        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);
     }
 }
コード例 #8
0
 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);
             }
         }
     }
 }