-
设计思路:
对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
-
这是一个模拟acdsee软件打开一幅bmp文件并显示在屏幕上的算法....
这是一个模拟acdsee软件打开一幅bmp文件并显示在屏幕上的算法.-This is a simulation software Converter opened a bmp file and display on the screen of the algorithm.
- 2022-11-07 09:10:04下载
- 积分:1
-
Graphic based on graphics algorithms, including the Bresenham algorithm and midp...
基于图形算法的图形,包括Bresenham算法和中点算法画圆以及用它们画直线-Graphic based on graphics algorithms, including the Bresenham algorithm and midpoint algorithms draw a circle and using them to draw a straight line
- 2022-03-19 20:32:58下载
- 积分:1
-
用OpenCV实现直方图均化
用OpenCV实现直方图均化-with histogram equalization
- 2022-04-10 12:17:31下载
- 积分:1
-
The specific format of 3D model is displayed, and can use the keyboard and mouse...
把特定格式的3D模型显示出来,并且能用键盘和鼠标控制。3D文件已包含在压缩包里(abc.obj。-The specific format of 3D model is displayed, and can use the keyboard and mouse control. 3D document has been included in the compression bag (abc.obj.
- 2022-02-15 15:34:06下载
- 积分:1
-
逆滤波处理,在readme.txt里有详细的使用说明
逆滤波处理,在readme.txt里有详细的使用说明-inverse filter, the readme.txt are detailed usage
- 2022-06-27 07:16:03下载
- 积分:1
-
经典的三维水管源码
windows 屏保中的三维水管,真的很奇特,找到此源码,可以对C++编程,尤其是图像编程很有帮助!
- 2022-02-03 11:21:12下载
- 积分:1
-
bmp图象处理类,实现了bmp图象的读写操作、图象缩放、旋转、加减、合成、边缘检测、测量周长、面积、小区域删除、去除黑斑、去除白班、二值化、抽取图象内点等。...
bmp图象处理类,实现了bmp图象的读写操作、图象缩放、旋转、加减、合成、边缘检测、测量周长、面积、小区域删除、去除黑斑、去除白班、二值化、抽取图象内点等。-bmp image processing category, achieving bmp image read and write operations, image scaling, rotation, addition and subtraction, synthesis, edge detection, measurement perimeter, area, a small regional delete, remove blotches, remove the day shift, two values, images taken within points.
- 2022-06-12 08:53:11下载
- 积分:1
-
计算机图形学,利用L系统分形算法,生成自然风景
计算机图形学,利用L系统分形算法,生成自然风景-树。-Computer Graphics, using L system fractal algorithm to generate the natural landscape- trees.
- 2022-04-24 23:47:50下载
- 积分:1
-
本代码是用vc开发的水印的源文件,包括水印的嵌入…
本代码是用VC++开发的水印源程序,包括水印的嵌入和提取-the code is developed by VC watermark source files, including the watermark embedding and extraction
- 2023-02-16 12:55:03下载
- 积分:1