public RoundedButton(int width, int height) { this.Width = width; this.Height = height; _shadowThickness = 15; ShadowImage = ImageEditing.DrawPanelShadow(width, height, _shadowThickness); }
public RoundedCornersPanel() : base() { SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); ShadowImage = ImageEditing.DrawPanelShadow(400, 500, _shadowThickness); //ShadowImage = ImageEditing.DrawPanelShadow(this.Width, this.Height); _bgColor = Color.White; _drawDropInHighlight = false; }