コード例 #1
0
        public void DrawSkinFormBackground(SkinFormBackgroundRenderEventArgs e)
        {
            this.OnRenderSkinFormBackground(e);
            SkinFormBackgroundRenderEventHandler skinFormBackgroundRenderEventHandler = this.Events[SkinFormRenderer.EventRenderSkinFormBackground] as SkinFormBackgroundRenderEventHandler;

            if (skinFormBackgroundRenderEventHandler != null)
            {
                skinFormBackgroundRenderEventHandler(this, e);
            }
        }
コード例 #2
0
        protected override void OnRenderSkinFormBackground(SkinFormBackgroundRenderEventArgs e)
        {
            Graphics  graphics      = e.Graphics;
            Rectangle clipRectangle = e.ClipRectangle;
            SkinForm  skinForm      = e.SkinForm;

            using (new AntiAliasGraphics(graphics))
            {
                using (Brush brush = new SolidBrush(this.ColorTable.Back))
                {
                    using (GraphicsPath graphicsPath = GraphicsPathHelper.CreatePath(clipRectangle, skinForm.Radius, skinForm.RoundStyle, false))
                    {
                        graphics.FillPath(brush, graphicsPath);
                    }
                }
            }
        }
コード例 #3
0
 protected abstract void OnRenderSkinFormBackground(SkinFormBackgroundRenderEventArgs e);