谁知道这是怎么实现的?我看到那些图片实际上是一个aspx文件,名字字串传给该文件了。
这样的文件应该怎么做呢?

解决方案 »

  1.   

    譬如这个网址:
    http://news.souniu.com/20041224/?text=%B4%F7%C8%D9
      

  2.   

    比较简单,任何一个图形控件都可以实现这个功能
    http://www.evget.com/view/viewProductInfo.asp?productId=120
      

  3.   

    TO: sdenli(史丹力) 不是用层的。
    昨天晚上已经可以实现功能啦。只是图片显示效果是24位图的。效果不好
    具体讨论:[email protected]
      

  4.   

    哦是吗?你是用GDI+作的?    ugg(www.cavc.net)
      

  5.   

    用GDI+里面的
    g.DrawString()方法验证码图片一般就是这样生成的
      

  6.   

    跟验证码图片的生成方式一样。
    如:http://www.cnblogs.com/a7lang/archive/2004/12/29/83575.html
      

  7.   

    用GDI 很简单的。。 还可以做更丰富的例子呢。。
    如:
    System.Drawing.Image objImage =   System.Drawing.Image.FromFile(Server.MapPath("../oilmap/solid.gif"));
    Bitmap objBmp = new Bitmap(objImage);
    float fltX =float.Parse((175 + outpoutX *intX).ToString());
    float fltY =float.Parse((304 + outpoutY *intY + outputZ * -intZ).ToString());
    //float fltY =float.Parse((304 + outpoutY *1 ).ToString());
    Graphics objT = Graphics.FromImage(objBmp);
    objT.TranslateTransform(fltX,fltY);//原点位置
    objT.DrawLine(myPen, -100f, -14.5f,100f,14.5f);//y
    objT.DrawLine(myPen2,100,-51,-100,51);//x
    objT.DrawLine(myPen3,0,float.Parse((outputZ * intZ).ToString()),0,-100);// z Graphics objText = Graphics.FromImage(objBmp);
    //字体
    Font drawFont = new Font("Arial", 12);
    SolidBrush drawBrush = new SolidBrush(Color.Red); objText.DrawString("X="+globalMethod.formatDBL(this.DblC2h4ToC2h6)+",Y="+ globalMethod.formatDBL(this.DblCh4ToH2)+",Z="+globalMethod.formatDBL(this.DblC2h4ToC2h6),drawFont,drawBrush,10,10); objBmp.Save(Response.OutputStream,ImageFormat.Gif);
      

  8.   

    顺便问一句 objBmp.Save(Response.OutputStream,ImageFormat.Gif);
    生成的图片,我如何在图片的一个固定位置给显示出来?