float iBarHeight = 0;
float iBarWidth = 0;
System.Drawing.Graphics g = System.Drawing.Graphics.FromHdc(new System.IntPtr(hDC)); //创建Graphics对象
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; //消除图形的锯齿
System.Drawing.SolidBrush tempBrush = null;
System.Drawing.Pen pOutLine = new System.Drawing.Pen(new System.Drawing.SolidBrush(this.m_OutlineColor),0.2f);
iBarWidth = this.m_BarWidth;
float CurrentX,CurrentY;
CurrentX = x - this.m_BarWidth * values.Length / 2;
CurrentY = y;
for(int i=0;i<values.Length;i++)
{
//创建画刷 并计算矩形的高度
tempBrush = new System.Drawing.SolidBrush(System.Drawing.ColorTranslator.FromWin32(this.m_iColors[i]));
iBarHeight = System.Convert.ToSingle((values[i] * this.m_MaxBarHeight/this.m_fTotal).ToString());
if(iBarHeight < this.m_MinBarHeight)
{
iBarHeight = this.m_MinBarHeight;
}
if(iBarHeight > this.m_MaxBarHeight)
{
iBa






