摘要
C语言具有较强的数据和图形处理功能,能将所得数据依据函数对应关系绘制出工程所需函数曲线实现图形屏幕显示,并保存图形用于输出。将C语言的字符模式转换为所需分辨率和颜色值的图形模式,正确使用C语言表达函数对应法则,准确计算出工程数值,通过调用C语言库函数画出对应函数值在坐标上的点,从而实现图形的精确绘制。用以上方法对地震勘探原理中的多次叠加振幅特性曲线进行了成功绘制。
C Language has strong functions on processing data and graphics. It can draw function curves graphics needed by engi- neering according to the data in relation with the function, showing them on screens, saving them for outputting. The character mode of C Language can be transferred into graphic pattern with needed resolution and color value. Using C Language to ex- press function corresponding rules correctly and work out engineering value accurately. In accordance with the library function of C Language, we can draw the point of the function value on coordinate, making the graphics drawn accurately. With the method above, the multiple superimposed amplitude characteristic curve in the principle of seismic exploration can be worked out.
作者
卫星君
WEI Xing-jun (Department of Electronic Engineering, Shaanxi Energy Institute, Xianyang 712000, China)
出处
《电脑知识与技术》
2013年第1期80-84,共5页
Computer Knowledge and Technology
关键词
C程序
函数曲线
图形
C Language
function curve
graphics