/// <summary>
/// 重写绘制事件
/// </summary>
/// <param name="e"></param>
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
if (splitterImage != null)
{
//清除原始的三角形
e.Graphics.SetClip(this.SplitterBounds);
e.Graphics.Clear(this.BackColor);
//重绘制成自定义图片
Rectangle mRectanle = new Rectangle(this.SplitterBounds.X, (base.Height - splitterImage.Height) / 2, splitterImage.Width, splitterImage.Height);
e.Graphics.DrawImage(splitterImage, mRectanle);
}
}