protected override void MakeGraphic() { if (_opacity < 100) { _color = Draw.Utility.AdjustOpacity(_color, _opacity); } if (_borderColor == Color.Empty) { _borderColor = _color; } if (_borderOpacity < 100) { _color = Draw.Utility.AdjustOpacity(_borderColor, _borderOpacity); } if (_shadowStartOpacity < 100) { _shadowColor = Draw.Utility.AdjustOpacity(_shadowColor, _shadowStartOpacity); } Idaho.Draw.Corner draw = new Idaho.Draw.Corner(); draw.Position = _orientation; draw.Radius = _radius; // default height and width match radius draw.Width = draw.Radius + _shadowWidth; draw.Height = draw.Radius + _shadowWidth; draw.ExtendWidth = _extendWidth; draw.ExtendHeight = _extendHeight; draw.ShadowWidth = _shadowWidth; if (_shadowColor != Color.Empty) { draw.Color.Shadow = _shadowColor; } draw.Color.BackGround = System.Drawing.Color.Transparent; draw.Color.ForeGround = _color; draw.Color.Border = _borderColor; draw.BorderWidth = _borderWidth; draw.Create(); this.Bitmap = draw.Bitmap; }
public Corner() { _draw = new Idaho.Draw.Corner(); }