Nitha Gowda

Nitha Gowda

  • NA
  • 1
  • 2.2k

equivalent code for web applications

Oct 11 2007 2:52 AM
using(Brush brush  = new SolidBrush(Color.Yellow))
{
if (numNumbers == 0)
numNumbers = 1;
for (int i = 0; i < 360; i += 360 / numNumbers)
{
Matrix matrix = new Matrix();
matrix.RotateAt(i + this.angle, centerPt);
g.Transform = matrix;
if(i >= redZone)
g.DrawLine(Pens.Red,center, center,center, center * 3/10);
else
g.DrawLine(Pens.Yellow, center, center, center, center * 3/10);
g.DrawString(((int)(i * divisor)).ToString(),
this.Font,brush, center - 6, center * 5 / 100,
StringFormat.GenericTypographic);
}
}

How to use the above code in web applications. please help me out as i am trying to generate gauge charts..