コード例 #1
0
        /// <summary>
        /// Customs the excision circle button paint.
        /// </summary>
        /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
        private void CustomExcisionCircleButtonPaint(System.Windows.Forms.PaintEventArgs e)
        {
            B = new Bitmap(Width, Height);
            G = Graphics.FromImage(B);
            Rectangle ClientRectangle = new Rectangle(0, 0, Width - 1, Height - 1);
            Rectangle InnerRect       = new Rectangle(1, 1, Width - 3, Height - 3);

            G.Clear(BackColor);
            Font drawFont = new Font("Tahoma", 10, FontStyle.Bold);

            //G.CompositingQuality = CompositingQuality.HighQuality
            G.SmoothingMode = SmoothingMode.HighQuality;
            ImageToCodeClass cti = new ImageToCodeClass();

            Bitmap       BUTTONGRAIN = (Bitmap)cti.CodeToImage(ImageCodeString);
            TextureBrush BUTTONIMAGE = new TextureBrush(BUTTONGRAIN, WrapMode.TileFlipXY);

            G.FillEllipse(BUTTONIMAGE, ClientRectangle);
            //Pen p = new Pen(new SolidBrush(Color.FromArgb(117, 120, 117)));
            G.DrawEllipse(new Pen(CustomExcisionBorderColors[0]), ClientRectangle);
            Pen Ip = new Pen(Color.FromArgb(45, CustomExcisionBorderColors[1]));

            G.DrawEllipse(Ip, InnerRect);


            e.Graphics.DrawImage((Bitmap)B.Clone(), 0, 0);
            DrawImage(e.Graphics, this.ClientRectangle);
            //G.Dispose();
            //B.Dispose();
        }
コード例 #2
0
        /// <summary>
        /// Customs the excision default button paint.
        /// </summary>
        /// <param name="e">The <see cref="System.Windows.Forms.PaintEventArgs"/> instance containing the event data.</param>
        private void CustomExcisionDefaultButtonPaint(System.Windows.Forms.PaintEventArgs e)
        {
            G.SmoothingMode     = Smoothing;
            G.TextRenderingHint = TextRendering;
            G.PixelOffsetMode   = PixelOffsetMode;
            G.InterpolationMode = InterpolationMode;

            B = new Bitmap(Width, Height);
            G = Graphics.FromImage(B);
            Rectangle ClientRectangle = new Rectangle(0, 0, Width - 1, Height - 1);
            Rectangle InnerRect       = new Rectangle(1, 1, Width - 3, Height - 3);

            G.Clear(Parent.BackColor);
            Font drawFont = new Font("Tahoma", 10, FontStyle.Bold);

            //G.CompositingQuality = CompositingQuality.HighQuality
            //G.SmoothingMode = SmoothingMode.HighQuality;
            ImageToCodeClass cti = new ImageToCodeClass();

            Bitmap       BUTTONGRAIN = (Bitmap)cti.CodeToImage(ImageCodeString);
            TextureBrush BUTTONIMAGE = new TextureBrush(BUTTONGRAIN, WrapMode.TileFlipXY);

            G.FillPath(BUTTONIMAGE, Draw.RoundRect(ClientRectangle, 4));
            //Pen p = new Pen(new SolidBrush(Color.FromArgb(117, 120, 117)));
            G.DrawPath(new Pen(CustomExcisionBorderColors[0]), Draw.RoundRect(ClientRectangle, 4));
            Pen Ip = new Pen(Color.FromArgb(45, CustomExcisionBorderColors[1]));

            G.DrawPath(Ip, Draw.RoundRect(InnerRect, 4));

            e.Graphics.DrawImage((Bitmap)B.Clone(), 0, 0);
            DrawImage(e.Graphics, this.ClientRectangle);
            //G.Dispose();
            //B.Dispose();
        }
コード例 #3
0
        private void ExcisionDefaultButtonPaint(System.Windows.Forms.PaintEventArgs e)
        {
            B = new Bitmap(Width, Height);
            G = Graphics.FromImage(B);
            Rectangle ClientRectangle = new Rectangle(0, 0, Width - 1, Height - 1);
            Rectangle InnerRect       = new Rectangle(1, 1, Width - 3, Height - 3);

            G.Clear(Parent.BackColor);
            Font drawFont = new Font("Tahoma", 10, FontStyle.Bold);

            //G.CompositingQuality = CompositingQuality.HighQuality
            G.SmoothingMode = SmoothingMode.HighQuality;
            ImageToCodeClass cti = new ImageToCodeClass();

            Bitmap       BUTTONGRAIN = (Bitmap)cti.CodeToImage("/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM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zjqDzgU0syoBjHHWgLDlYKQFLIT0GOKbExJJIIJ4pVBJBBI47DH40oO1yWGS2CMc0AGCN43AY496FJZDkgAHjPAo3/ADE4AOc+9NZl6hT9TyaBAc5BKlgPTikXjduJA7jHSiNgzlgRjHGTTtuDkEkk8+lACgFUUqAMjk570nDrk5BBxxSTKyYBACjvTmbeVXDYPH/16AGiUK4Gcgnnnt9KHbYFBBO3npg0uN0hHBKjuMUNhGJBIDde9Axy2vmEjfnaB+tFJGzKSASD3xRQJDWcbyVAGTjHp70oyFVWyB7AGhlBByCCTnnpRtLNgnJPP0oC4MoJKqpUNxQ6HauF5I5HTNJtKIcAkHucE0u0CJQwyT0OKAuIoCttCg7eMZORSgoEA24btzgjrSlcYZQpJ54poyzZBJI4ANADombgkDB6np3ppjzgsTgnGcUofPyg7c5Ht+tIg5AJ68YyKBodEAxJyFAH6004yPmYkHGf/rUqgjcM5J49h1pHKnAIBI7+poEKcBiCBg8ZFNY4PGcD88UrZHAPygjj8KVV5I6Y7ngCgBqDMgzuyOeAc053boMBicj/ADmguwQhiGweM4NL8zEADbg8cUDTGjbyWDEHpzRSuFLYIGR6ciigVwjYvjPIwOvNICGYHBG4kHFFFA0JwzEqNuQf5U8sUUk4ZSenTtRRQJBuEiYAK454pquFQrtyVzz3oooBMCxOAMLkHkdetPiUPKytzlcknk0UUAQl96g4wQaeF+QE9G9PqKKKAYMuVLAkZJp+3MUj5IYn8KKKBoYSWbGcY4HApAxMjAk/KfWiigTY5CyLlTt3UUUUCbP/2Q==");
            TextureBrush BUTTONIMAGE = new TextureBrush(BUTTONGRAIN, WrapMode.TileFlipXY);

            G.FillPath(BUTTONIMAGE, Draw.RoundRect(ClientRectangle, 4));
            Pen p = new Pen(new SolidBrush(Color.FromArgb(117, 120, 117)));

            G.DrawPath(Pens.Black, Draw.RoundRect(ClientRectangle, 4));
            Pen Ip = new Pen(Color.FromArgb(45, Color.White));

            G.DrawPath(Ip, Draw.RoundRect(InnerRect, 4));

            switch (State)
            {
            case MouseState.None:
                //G.DrawString(Text, drawFont, new SolidBrush(Color.FromArgb(178, 178, 178)), new Rectangle(0, 1, Width - 1, Height - 1), new StringFormat
                //{
                //    Alignment = StringAlignment.Center,
                //    LineAlignment = StringAlignment.Center
                //});
                break;

            case MouseState.Over:
                //G.DrawString(Text, drawFont, new SolidBrush(Color.WhiteSmoke), new Rectangle(0, 1, Width - 1, Height - 1), new StringFormat
                //{
                //    Alignment = StringAlignment.Center,
                //    LineAlignment = StringAlignment.Center
                //});
                break;

            case MouseState.Down:
                //G.DrawString(Text, drawFont, new SolidBrush(Color.FromArgb(178, 178, 178)), new Rectangle(0, 1, Width - 1, Height - 1), new StringFormat
                //{
                //    Alignment = StringAlignment.Center,
                //    LineAlignment = StringAlignment.Center
                //});

                break;
            }


            e.Graphics.DrawImage((Bitmap)B.Clone(), 0, 0);
            DrawImage(e.Graphics, this.ClientRectangle);
            //G.Dispose();
            //B.Dispose();
        }
コード例 #4
0
        void Excision_PaintHook(System.Windows.Forms.PaintEventArgs e)
        {
            Bitmap   B = new Bitmap(Width, Height);
            Graphics G = Graphics.FromImage(B);

            Rectangle CR   = new Rectangle(0, 0, Width - 1, 35);
            Rectangle Main = new Rectangle(0, 35, Width, Height - 35);


            G.Clear(Color.Fuchsia);

            G.CompositingQuality = CompositingQuality.HighQuality;

            ImageToCodeClass itc = new ImageToCodeClass();
            Bitmap           BG  = (Bitmap)itc.CodeToImage("/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCABuANEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFB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PTnpUgC7gvILHAweBigCDa391v1oq1gf3nooA//9k=");
            TextureBrush     BGT = new TextureBrush(BG, WrapMode.TileFlipXY);

            G.FillRectangle(BGT, Main);


            LinearGradientBrush lbb = new LinearGradientBrush(CR, Color.FromArgb(68, 68, 68), Color.FromArgb(45, 45, 45), 90);

            G.FillRectangle(lbb, CR);
            G.DrawRectangle(new Pen(new SolidBrush(Color.FromArgb(26, 26, 26))), CR);

            G.DrawLine(new Pen(new SolidBrush(Color.FromArgb(70, 70, 70))), 0, 36, Width - 1, 36);

            G.DrawPath(new Pen(new SolidBrush(Color.FromArgb(15, 15, 15))), CreateRound(new Rectangle(0, 0, Width - 1, Height - 1), 10));
            G.DrawPath(new Pen(new SolidBrush(Color.FromArgb(88, 88, 88))), CreateRound(new Rectangle(1, 1, Width - 3, Height - 3), 10));

            Font drawFont = new Font("Tahoma", 10, FontStyle.Bold);

            G.DrawString(Parent.FindForm().Text, drawFont, Brushes.WhiteSmoke, 12, 10);

            //////left upper corner
            G.FillRectangle(Brushes.Fuchsia, 0, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 1, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 2, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 3, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 0, 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 0, 2, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 0, 3, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 1, 1, 1, 1);
            //'////right upper corner
            G.FillRectangle(Brushes.Fuchsia, Width - 1, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 2, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 3, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 4, 0, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 1, 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 1, 2, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 1, 3, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 2, 1, 1, 1);
            //'////left bottom corner
            G.FillRectangle(Brushes.Fuchsia, 0, Height - 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 0, Height - 2, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 0, Height - 3, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 0, Height - 4, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 1, Height - 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 2, Height - 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 3, Height - 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, 1, Height - 1, 1, 1);
            //G.FillRectangle(Brushes.Fuchsia, 2, Height - 2, 1, 1)
            //'////right bottom corner
            G.FillRectangle(Brushes.Fuchsia, Width - 1, Height, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 2, Height, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 3, Height, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 4, Height, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 1, Height - 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 1, Height - 2, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 1, Height - 3, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 2, Height - 1, 1, 1);
            G.FillRectangle(Brushes.Fuchsia, Width - 3, Height - 1, 1, 1);


            e.Graphics.DrawImage((Bitmap)B.Clone(), 0, 0);
            G.Dispose();
            B.Dispose();
        }