现在网上有一种搞笑的网页,把自己的名字作为参数传过去,就会出现一些图片,图片里是自己的名字 谁知道这是怎么实现的?我看到那些图片实际上是一个aspx文件,名字字串传给该文件了。这样的文件应该怎么做呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 譬如这个网址:http://news.souniu.com/20041224/?text=%B4%F7%C8%D9 比较简单,任何一个图形控件都可以实现这个功能http://www.evget.com/view/viewProductInfo.asp?productId=120 TO: sdenli(史丹力) 不是用层的。昨天晚上已经可以实现功能啦。只是图片显示效果是24位图的。效果不好具体讨论:[email protected] 哦是吗?你是用GDI+作的? ugg(www.cavc.net) 用GDI+里面的g.DrawString()方法验证码图片一般就是这样生成的 跟验证码图片的生成方式一样。如:http://www.cnblogs.com/a7lang/archive/2004/12/29/83575.html 用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); 顺便问一句 objBmp.Save(Response.OutputStream,ImageFormat.Gif);生成的图片,我如何在图片的一个固定位置给显示出来? MVC HTML.Dropdownlist错误 vs2003创建项目出问题 html危险代码以及不合理的代码过滤的问题 档案怎么修改,请进来帮我看看。 小弟求web水晶报表的资料~~~在线等~~ 谁有源代码下载的网站啊??? 急啊,实在实在是找不到错在哪里啊,关于CompareValidator控件! 程序员就这样没有前途吗? 请大家帮忙看看错再哪了,谢谢! 关于文件上传,小弟菜鸟,请高手赐教 少量数据传输问题 今天一天就被一個問題煩住了.這是怎么回事?
http://news.souniu.com/20041224/?text=%B4%F7%C8%D9
http://www.evget.com/view/viewProductInfo.asp?productId=120
昨天晚上已经可以实现功能啦。只是图片显示效果是24位图的。效果不好
具体讨论:[email protected]
g.DrawString()方法验证码图片一般就是这样生成的
如:http://www.cnblogs.com/a7lang/archive/2004/12/29/83575.html
如:
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);
生成的图片,我如何在图片的一个固定位置给显示出来?