Exemple #1
0
 protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
 {
     AdvanceDrawing.DrawBlurryTextAndImage(
         e.Graphics,
         this.ClientRectangle,
         this.Text,
         this.Font,
         this.ForeColor,
         this.blurColor,
         this.TextAlign,
         this.blur,
         this.Image,
         this.ImageAlign);
 }
Exemple #2
0
        private void DrawLabel(IntPtr handle)
        {
            System.Windows.Forms.Label label = Control.FromHandle(handle) as System.Windows.Forms.Label;
            if (label == null)
            {
                return;
            }

            using (Graphics g = label.CreateGraphics())
            {
                AdvanceDrawing.DrawBlurryTextAndImage(
                    g,
                    label.ClientRectangle,
                    label.Text,
                    label.Font,
                    label.ForeColor,
                    this.BlurColor,
                    label.TextAlign,
                    this.BlurSize,
                    label.Image,
                    label.ImageAlign);
            }
        }