-
新建一个C++Builder项目 设置Form1的font为“宋体,小五” 在Form1中添加一个TRadioGroup组件rgDrawWhat供选择画什么图形...
新建一个C++Builder项目 设置Form1的font为“宋体,小五” 在Form1中添加一个TRadioGroup组件rgDrawWhat供选择画什么图形;添加一个Tbutton组件colorBtn和一个TcolorDialog组件ColorDialog1;添加一个TImage组件Image1。 3、 将当前项目保存在自己实验文件夹的exp1子文件夹中(以防错误操作而前功尽弃)。 编写colorBtn的OnClick事件,激活ColorDialog1,并获取所选择的颜色: if (ColorDialog1->Execute()) Image1->Canvas->Pen->Color = ColorDialog1->Color 5、 编写Image1的OnImage1MouseUp事件,要求实现: 1) 若是第奇数次鼠标按钮弹起,则根据rgDrawWhat的选择,记录直线第一个端点或圆心坐标; 2) 若是第偶数次鼠标按钮弹起,则根据rgDrawWhat的选择,记录直线第二个端点并利用TCanvas的MoveTo()和LineTo()方法画出直线段,或计算出圆的外接矩形后调用TCanvas的Ellipse()方法画圆。-C Builder a new project set the font to Form1 "wherein V" in Form1 add a TRadioGroup components rgDrawWhat options for what painting graphics; Add a Tbutton colorBtn components and a TcolorDialog ColorDialog1 components; Add a TImage component Image1. 3, the current project will be kept in their laboratories folders exp1 Documents folder (to prevent erroneous operation and wasted). Preparation colorBtn the OnClick, ColorDialog1 activated, and access t
- 2022-03-05 21:42:30下载
- 积分:1
-
通用的去验证码中干扰线的资料,使用最短路径和方向偏移算法实现...
通用的去验证码中干扰线的资料,使用最短路径和方向偏移算法实现-A common code to verify the information in the interference lines, use the shortest path and direction of the offset algorithm
- 2022-08-14 08:53:29下载
- 积分:1
-
itk读取dicom数据并通过vtk显示
用itk读取dicom数据并通过vtk显示,itk和vtk混合编程的范例。
- 2022-01-31 18:12:13下载
- 积分:1
-
用于连续图像拼接,模板匹配算法
用于对两幅连续图像进行拼接,模板匹配算法-used for two consecutive image stitching, template matching algorithm
- 2022-03-25 09:35:10下载
- 积分:1
-
水波特效
水波特效- Wave special effect
- 2023-04-07 14:35:04下载
- 积分:1
-
该程序能够实现图像的合成技术,把两个图像何在一起‘ 改程序用vb语言来实现,整体效果不错!...
该程序能够实现图像的合成技术,把两个图像何在一起‘ 改程序用vb语言来实现,整体效果不错!-the program can achieve image synthesis technology, the two images together what "vb changed procedures used to achieve language, the overall effect was excellent!
- 2022-03-22 00:32:56下载
- 积分:1
-
ezplot为了使用仿真计算二进制
用ezplot命令来计算模拟一维二元光子晶体的反射率-Ezplot order to use simulation to calculate the binary one-dimensional photonic crystal reflectivity
- 2023-06-18 02:10:03下载
- 积分:1
-
resources written procedures, dynamic effects, has collated
资源编写的程序,动态效果,有整理
- 2022-03-24 15:34:56下载
- 积分:1
-
BMP bitmap file structure and VC operation. Doc 083812.rar
BMP位图文件结构及VC操作.doc 083812.rar-BMP bitmap file structure and VC operation. Doc 083812.rar
- 2022-04-28 19:42:46下载
- 积分:1
-
A simple drawing program to achieve class inheritance. Can draw a straight line,...
一个简单的绘图程序,实现类的继承。可以画直线、圆、矩形。并实现简单的图形保存。直线画法为DDA,圆的画法为中点画圆法,矩形在直线基础上画。程序比较适合初学者。-A simple drawing program to achieve class inheritance. Can draw a straight line, round, rectangular. And to achieve a simple, save the drawing. Straight-line painting for the DDA, a circle drawing method for the midpoint drawcircle, rectangular paintings in a straight line basis. Program is more suitable for beginners.
- 2022-04-27 02:59:34下载
- 积分:1