在aspx页面的cs文件中写了绘图函数如下:
……
Bitmap image = new Bitmap(width, height);
Graphics graphics = Graphics.FromImage(image);
……
System.IO.MemoryStream MStream = new System.IO.MemoryStream();
image.Save(MStream, System.Drawing.Imaging.ImageFormat.Gif);
Response.ClearContent();
Response.ContentType = "image/Gif";
Response.BinaryWrite(MStream.ToArray());
现在有这么个需求:用户在浏览器中查看该图像时,当鼠标指针移动到图像上中折线(折线的点用数组保存)上的点时,立即在鼠标指针处显示该点的坐标。该问题是不是应该在aspx中用Javascript来写,如果是,那该怎么写呢?在线等,谢谢~