-
设计思路:
对Windows XP自带的画笔程序进行分析,一般User画图过程:
首先鼠标选择绘图工具,然后选择颜色,接着按User需要作图。User对...
设计思路:
对Windows XP自带的画笔程序进行分析,一般User画图过程:
首先鼠标选择绘图工具,然后选择颜色,接着按User需要作图。User对产出的图像进行操作。
对图形元素抽象出公共属性,设计我的画板的作图过程:
选择工具 、画预览效果、User满意并确定、绘制效果。
下面是程序用到主要变量:
当前绘图点粒度:int iGranularity
当前使用颜色:COLORREF curColor
当前绘图状态:int iPaintStatus
当前绘图状态属性:int iPaintProperty
前一个鼠标坐标:CPoint pOldPoint
多边形起点:CPoint pStartPoint
多边形终点:CPoint pEndPoint
当前鼠标坐标:CPoint pCurPoint
输出文本字符串缓存:CString strTextOut
对典型操作过程(画矩形)描述:
用户选择工具_RECTANGLE(使iPaintStatus=_RECTANGLE)、
选择绘图颜色(设定curColor)、
用户按下鼠标左键使绘图状态属性为预览(iPaintProperty=_PREVIEW)、
用户移动鼠标(绘制图形的橡皮线效果)
用户放开左键(绘制图形的实线效果)
-design : Windows XP"s own brush analysis procedures, the general User drawing process : first choice mouse drawing tool, then select colors, followed by Graphic User needs. User to output images to operate. Right abstract graphic elements from the public properties, design I slate of mapping process : select tools, painting preview effects, User satisfaction and identification, mappi
- 2022-03-11 03:27:30下载
- 积分:1
-
关于3D图形显示的一个系统,对初学的同学们很有用,
关于3D图形显示的一个系统,对初学的同学们很有用,-3D graphics on a system of the students who are learning useful, thank you
- 2022-02-05 15:57:16下载
- 积分:1
-
远程视频监控客户端窗口的毕业设计
毕业设计时作的有关远程视频监控的客户端窗口-graduation design for the Remote Video Surveillance client window
- 2022-03-26 07:14:16下载
- 积分:1
-
recursive algorithm mapping Hilbert graphics, experimental report
递归Hilbert算法绘制Hilbert图形,有实验报告-recursive algorithm mapping Hilbert graphics, experimental report
- 2022-03-06 02:26:28下载
- 积分:1
-
DM code is a common two
DM码是一种常见的二维条形码,提供一个编码器,供学习参考。-DM code is a common two-dimensional bar code, providing an encoder, for the study reference.
- 2023-03-26 15:25:03下载
- 积分:1
-
JAVA图像处理
这是找的一个小程序略作修改用于测试学习,一个简单的界面,可载入图片,修改图片,二值化处理
- 2022-06-15 19:49:32下载
- 积分:1
-
数码相机定位在交通监管(电子警察)等方面有广泛的应用。所谓数码相机定位是指用数码相机摄制物体的相片确定物体表面某些特征点的位置。最常用的定位方法是双目定位,即用...
数码相机定位在交通监管(电子警察)等方面有广泛的应用。所谓数码相机定位是指用数码相机摄制物体的相片确定物体表面某些特征点的位置。最常用的定位方法是双目定位,即用两部相机来定位。对物体上一个特征点,用两部固定于不同位置的相机摄得物体的像,分别获得该点在两部相机像平面上的坐标。只要知道两部相机精确的相对位置,就可用几何的方法得到该特征点在固定一部相机的坐标系中的坐标,即确定了特征点的位置。于是对双目定位,精确地确定两部相机的相对位置就是关键,这一过程称为系统标定。-err
- 2023-09-03 07:40:03下载
- 积分:1
-
miniGUI图形系统源码libminigui
miniGUI图形系统源码libminigui-1.6.2.tar.gz。-MiniGUI source graphics system libminigui-1.6.2.tar.gz.
- 2023-02-18 06:25:04下载
- 积分:1
-
Matlab do with a wavelet transform two
一个用matlab做二维小波变换的源程序 -Matlab do with a wavelet transform two-dimensional source
- 2022-02-21 05:32:20下载
- 积分:1
-
读取amsre卫星数据
1、分别求出2007年6月、2007年12月、2008年6月105°E-145°E,10°N-50°N范围内各参数的5度间隔纬向平均...
读取amsre卫星数据
1、分别求出2007年6月、2007年12月、2008年6月105°E-145°E,10°N-50°N范围内各参数的5度间隔纬向平均值并输出ASCII有格式文件;
2、读入ASCII文件(read_ascii, ascii_template;或者readf),画图(plot、oplot)表示2007年6月、2007年12月、2008年6月输出结果(X轴为纬度,Y轴为参数, 同一参数不同月份放在一张图上,5个参数5张图),并进行必要标注(xyouts)。
-Read amsre satellite data 1, respectively, derived in June 2007, December 2007, June 2008 105 ° E-145 ° E, 10 ° N-50 ° N within the parameters of the 5-degree intervals zonal mean value and a format for the output ASCII file 2, read into the ASCII file (read_ascii, ascii_template or readf), Paint (plot, oplot) said that in June 2007, December 2007, in June 2008 the output (X-axis is latitude, Y-axis for the parameter, the same argument on a map in different months, the five parameters of Figure 5), and make the necessary mark (xyouts).
- 2022-03-22 21:33:29下载
- 积分:1