-
笔者在开发县级电网调度自动化系统的过程中,碰到一个要绘制电力系统一次接线图的问题。由于电力系统一次接线图比较复杂,图上有一
些特殊的符号,象变压器符号、开...
笔者在开发县级电网调度自动化系统的过程中,碰到一个要绘制电力系统一次接线图的问题。由于电力系统一次接线图比较复杂,图上有一
些特殊的符号,象变压器符号、开关符号等等,用一般的编程方法来绘制比较困难,因此,笔者用C语言开发了一个手工绘制电力系统一次接线图
的键盘绘图程序,使用该程序绘制的一次接线图符合用户需求,效果良好。
2.使用方法
程序中定义了几个特殊键:
"V”:画笔提起
"W”:开始画图
"R”:开始擦图
"S”:当前图形存入文件
"E”:调出已有文件
"C”:画圆
程序一运行,屏幕上出现一个黄色的边框来设定画图的区域,区域中间出现提起的画笔符号 ,当按下”W“键时,画笔符号变为 ,此时可移动方向键(上、下、左、右、左上、左下、右上、右下)来画图;当按下”R“键时,画笔符号变为 ,此时可移动方向键来擦图;在画图过程中,按下“C”键,可画出一个半径为20个象素点的圆;当结束画图时,按下“S”键,将画好的图形存盘;按下“E”键可调出已有的图形进行编辑。-c
- 2022-05-21 20:17:39下载
- 积分:1
-
6.0关于绘图的程序设计,图形的绘制,如何使用自定义画笔(颜色,线宽,线形)。如何为程序中添加选项菜单和选项设置对话框,如何使用标准颜色对话框,如何使用字体对话...
6.0关于绘图的程序设计,图形的绘制,如何使用自定义画笔(颜色,线宽,线形)。如何为程序中添加选项菜单和选项设置对话框,如何使用标准颜色对话框,如何使用字体对话框,在选项对话框中实现预览功能。实现选项对话框和窗口类中的数据交换。如何改变对话框和控件的背景色,如何改变控件的文本颜色,对按钮控件的特殊处理。如何在窗口中显示一幅位图。-6.0 on the graphics programming, graphics rendering, since the definition of how to use a paintbrush (color, line width, Alignment). How procedures for adding options menu and the option to set up the dialog box, use the standard color dialog, how to use the Font dialog box, the dialog box options to achieve preview function. Implementation Options dialog window and type of data exchange. How to change the dialog and control the background color, how to change the text color control, the right button controls special treatment. How in the window shows a bitmap.
- 2022-02-25 06:55:08下载
- 积分:1
-
上机位源码,不错的代码,大家可以看看,感兴趣的交流一下
上机位源码,不错的代码,大家可以看看,感兴趣的交流一下-On machine-bit source code, good code, we will look at, interested in exchange
- 2022-08-19 16:16:37下载
- 积分:1
-
将源代码拷入硬盘中,用Visual C++打开项目文件,即可编译运行。注意有些程序需要配合硬件编程...
将源代码拷入硬盘中,用Visual C++打开项目文件,即可编译运行。注意有些程序需要配合硬件编程-to the source code it is copyed into your hard disk, open the Visual C project documents can be compiled operation. Attention to the need to meet some of the hardware programming
- 2022-03-19 17:55:35下载
- 积分:1
-
VC例程:用VC编写有关视频图像采集的全部源代码
VC例程:用VC编写有关视频图像采集的全部源代码-vc example: all vc source codes about video image collection
- 2022-01-25 21:42:36下载
- 积分:1
-
创建一个灰色的图标为例。
创建灰度图标的列子使图标的背景是灰色的 图标上还有文字-The example of creating a grayed icon.
It grays the background of the icon.And adds characters to it.
- 2022-07-01 01:28:46下载
- 积分:1
-
如果你刚毕业,而你又想搞游戏软件开发,这是一个程序是考试官常考的一个程序,快下嘛...
如果你刚毕业,而你又想搞游戏软件开发,这是一个程序是考试官常考的一个程序,快下嘛-If you have just graduated and you want to game software development, this is a procedure is often examiners test a procedure to do soon
- 2022-03-06 16:02:06下载
- 积分:1
-
一个为了更好的压缩,保存图像,并能够完整的显示出来的程序,利用了Delphi的编程语言进行编写...
一个为了更好的压缩,保存图像,并能够完整的显示出来的程序,利用了Delphi的编程语言进行编写-a better compression and preserve images, and be able to demonstrate the integrity of the procedure, and use of the Delphi programming language for the preparation
- 2022-11-30 05:40:03下载
- 积分:1
-
对VC的传统控件进行了一些简单的改写做成象开关那种的样式
对VC的传统控件进行了一些简单的改写做成象开关那种的样式-VC traditional control of some simple as switching rewrite caused the kind of style
- 2022-12-28 07:20:04下载
- 积分:1
-
SDL practice, people who want to learn SDL can refer to! VC2008 under test!
SDL练习,想学习SDL的人可以参考!
VC2008下测试通过!-SDL practice, people who want to learn SDL can refer to! VC2008 under test!
- 2023-06-13 17:55:37下载
- 积分:1