【程序编程相关:Email 服务器的简单实现】
【推荐阅读:利用delphi建立精确计数器】
【扩展信息:如何让C盘每次启动后都是完全共享】 batman 下面将推荐一个可以很方便的生成多种图形格式的,使用了asp+技术的图形 引擎代码.它的主要描述如下: 1.可以生成的图形文件格式支持bmp emf,gif,icon,jpeg,png,tiff,wmf 2.在文件chartengine.cs中为这个图形引擎的大量关键代码 stockpicker.aspx文件是一个使用该引擎绘图的例子 3.要使用这个图形引擎,需要把所有的代码文件复制到你的web的某个 运用目录(注:不是普通目录)中,然后在该目录下建立一个bin目录, 然后运行mk.bat 4.imagegenerator_vb.asp文件的头使用了<%@ page contenttype="image/jpeg" %>来说明生成的是某种格式的图形文件 5.为了服务器性能考虑,还可以在imagegenerator_vb.asp中增加以下代码 <%@ outputcache duration="60" %>,该代码可以将生成的图形文件缓存起来 这样如果网站访问量大时,可以大大减轻服务器的负担 好了,废话少说,大家可以自己研究研究代码: 1.chartengine.cs文件 using system.winforms; using system.collections; using system.collections.bases; using system.drawing; using system.drawing.drawing2d; using system.drawing.imaging; using system.componentmodel; using system; using system.io; namespace chartgenerator { //core line data structure public struct linedata { public float[] linevalues ; public string linetitle ; public string linesymbol ; } //line data plus display style information public class chartline { private color linecolor ; private linedata linedata ; private dashstyle linestyle ; private int linewidth ; //constructors public chartline() :base() {} public chartline(linedata linedata) :base() { this.linedata = linedata; } //properties public color color { get { return linecolor ; } set { linecolor = value ; } } public dashstyle linestyle { get { return linestyle ; } set { linestyle = value ; } } public string symbol { get { return linedata.linesymbol ; } set { linedata.linesymbol = value ; } } public string title { get { return linedata.linetitle ; } set { linedata.linetitle = value ; } } public float[] values { get { return linedata.linevalues ; } set { linedata.linevalues = value ; } } public int width { get { return linewidth ; } ... 下一页