-
笔者在开发县级电网调度自动化系统的过程中,碰到一个要绘制电力系统一次接线图的问题。由于电力系统一次接线图比较复杂,图上有一
些特殊的符号,象变压器符号、开...
笔者在开发县级电网调度自动化系统的过程中,碰到一个要绘制电力系统一次接线图的问题。由于电力系统一次接线图比较复杂,图上有一
些特殊的符号,象变压器符号、开关符号等等,用一般的编程方法来绘制比较困难,因此,笔者用C语言开发了一个手工绘制电力系统一次接线图
的键盘绘图程序,使用该程序绘制的一次接线图符合用户需求,效果良好。
2.使用方法
程序中定义了几个特殊键:
"V”:画笔提起
"W”:开始画图
"R”:开始擦图
"S”:当前图形存入文件
"E”:调出已有文件
"C”:画圆
程序一运行,屏幕上出现一个黄色的边框来设定画图的区域,区域中间出现提起的画笔符号 ,当按下”W“键时,画笔符号变为 ,此时可移动方向键(上、下、左、右、左上、左下、右上、右下)来画图;当按下”R“键时,画笔符号变为 ,此时可移动方向键来擦图;在画图过程中,按下“C”键,可画出一个半径为20个象素点的圆;当结束画图时,按下“S”键,将画好的图形存盘;按下“E”键可调出已有的图形进行编辑。-c
- 2022-05-21 20:17:39下载
- 积分:1
-
simple drawing program, my graphics experimental operation, it has not yet compl...
简单的画图程序,我的图形学实验作业,还未整个完成-simple drawing program, my graphics experimental operation, it has not yet completed the entire
- 2022-01-31 12:49:11下载
- 积分:1
-
achieved in a transparent bmp bitmap subtitles rolling on the procedure
一个实现在透明bmp位图上滚动字幕的程序-achieved in a transparent bmp bitmap subtitles rolling on the procedure
- 2022-02-05 12:40:39下载
- 积分:1
-
使用Axiom写的一个游戏例子,Axiom是一个非常有名的游戏开发引擎...
使用Axiom写的一个游戏例子,Axiom是一个非常有名的游戏开发引擎-use Axiom wrote a game example, Axiom is a very famous game development engine
- 2022-03-14 12:10:49下载
- 积分:1
-
一个有关轴承变形的识别检测,采用VC++编写,实验原图在压缩包中...
一个有关轴承变形的识别检测,采用VC++编写,实验原图在压缩包中-A deformation of the bearing identification testing, the use of VC++ Prepared, experimental image in the compressed package
- 2022-10-14 13:30:03下载
- 积分:1
-
这是一个在WINDOWS环境下方便开发图形的一个文件
这是一个在WINDOWS环境下方便开发图形的一个文件- This is facilitates the development graph under the WINDOWS
environment a document
- 2023-07-08 07:40:03下载
- 积分:1
-
实现简单的绘图功能,如绘制一个矩形等,并具有填充和擦出的功能。...
实现简单的绘图功能,如绘制一个矩形等,并具有填充和擦出的功能。-Realize a simple graphics functions, such as drawing a rectangle, etc., and together with filling and function.
- 2022-02-26 23:54:32下载
- 积分:1
-
graphics acceleration engine version 1.3, VGA/SVGA graphics acceleration for UNI...
图形加速引擎1.3版,VGA/SVGA图形加速库
UNICORN 图形开发 TC 源代码库
TURTLE 图形开发命令系统 TC 源代码-graphics acceleration engine version 1.3, VGA/SVGA graphics acceleration for UNICORN graphical development TC source code for orders TURTLE graphical development system source code TC
- 2022-05-05 15:33:42下载
- 积分:1
-
位图的存取在vc中的 因为所在的项目中我负责的模块是有关与位图的读写和存储的,所以看了一些资料后,并且成功在vc 下实现所需的功能后写下这篇读书报告。
对...
位图的存取在vc中的 因为所在的项目中我负责的模块是有关与位图的读写和存储的,所以看了一些资料后,并且成功在vc 下实现所需的功能后写下这篇读书报告。
对于位图,要想在vc中实现读取和存储,先必须了解BMP的文件格式。
BMP文件大体上分成四个部分:位图文件头,位图信息头,调色板,实际的位图数据。
位图文件头BITMAPFILEHEADER是一个结构,它的定义如下:
typedef struct tagBITMAPFILEHEADER{
WORD bfType
DWORD bfSize
WORD bfReserved1
WORD bfReserved2
DWORD bfOffBits
}BITMAPFILEHEADER实现-Bitmaps in vc access because of the projects where I am responsible for the module is concerned with reading and writing bitmap and storage, so read some information, and the success achieved in vc feature required to write This study reports. For bitmap, in order to achieve in the vc read and stored, first must understand the BMP file format. BMP files generally divided into four parts: the first bitmap file, BITMAPINFOHEADER, palette, the actual bitmap data. BITMAPFILEHEADER bitmap file header is a structure, it is defined as follows: typedef struct tagBITMAPFILEHEADER (WORD bfType DWORD bfSize WORD bfReserved1 WORD bfReserved2 DWORD b
- 2022-09-19 08:45:03下载
- 积分:1
-
- 2022-05-10 22:19:20下载
- 积分:1