-
设计思路:
对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
-
用VTK进行头部图像任意刨切,经典代码,值得参考
用VTK进行头部图像任意刨切,经典代码,值得参考-The head image using VTK for arbitrary Sliced, classical code, it is also useful
- 2022-05-20 01:51:43下载
- 积分:1
-
这是一个图形化界面的操作系统功能演示程序.包括进程,内存和设备管理...
这是一个图形化界面的操作系统功能演示程序.包括进程,内存和设备管理-This is a graphical interface to the operating system demonstration program. Including the process, memory and device management
- 2022-12-26 00:35:04下载
- 积分:1
-
Drawing on the realization of 3D geometry translation, rotation, variable than t...
对绘制的三维几何图形实现平移、旋转、变比的基本变换-Drawing on the realization of 3D geometry translation, rotation, variable than the basic transformation
- 2023-03-19 07:55:03下载
- 积分:1
-
这是个关于三角形旋转的程序,可以进行三角形的旋转。
这是个关于三角形旋转的程序,可以进行三角形的旋转。-This is a rotation of the triangle procedure can be carried out by rotating triangle.
- 2022-04-26 17:00:51下载
- 积分:1
-
bmp图像读取、保存、显示等基本操作,功能完整,代码可靠。
bmp图像读取、保存、显示等基本操作,功能完整,代码可靠。-bmp image to read, preserve, display and other basic operations, full-featured, reliable code.
- 2022-08-07 11:47:02下载
- 积分:1
-
本程序(全网)是麦加97 4K Intro和# 39;97赢得了比赛,我…
这个程序(omni.com)是97年的Mekka ’97 4K Intro比赛的一等奖作品,也是我认为最好的 4K作品之一。整个程序全长4095字节,其中包含133字节的自解压程序(类RAR压缩),未解 压的程序长4782字节。三维场景包含144个立方体,367个面,362个点,15个不同的64*64 的纹理…… -this procedure (omni.com) is the Mekka 97 4K Intro"97 won the competition work, I think the best one works 4K. The whole process 4,095 byte length, which includes 133 bytes of self-extracting (RAR compression type), resulting in decompression procedures 4,782 bytes long. 3D cube contains 144, 367-, 362, 15* 64 different texture 64
- 2022-08-19 01:15:26下载
- 积分:1
-
VTK5.8.0 CMake编译包
编译好的VTK文件夹 需要注意的是,不要忘记系统环境变量的配置。 还有就是qvtkwidgetplugin.lib和qvtkwidgetplugin .dll (在压缩包的VTKlibvtk-5.8)要考到XX:Qt4.8.5pluginsdesigner
- 2022-08-09 17:30:01下载
- 积分:1
-
关于二维码的一个实例,一个非常好的可以学习如何编码和解码2nd bar code...
关于二维码的一个实例,一个非常好的可以学习如何编码和解码2nd bar code-Two-dimensional code on an example of a very good can learn how to encode and decode 2nd bar code
- 2022-02-05 02:12:00下载
- 积分:1
-
进程同步,VC开发
进程同步,VC开发-process synchronization, VC
- 2022-03-11 20:12:34下载
- 积分:1