-
新建一个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
-
Used to control stepper motor driven throttle sensors, collect data, generate da...
用于控制步进电机带动油门传感器,采集数据,生成数据曲线并可打印报表-Used to control stepper motor driven throttle sensors, collect data, generate data curves and print statements
- 2023-04-17 10:40:03下载
- 积分:1
-
注意,本程序的细化算法要应用于含线条的黑白二值图像才可以看出细化效果。
注意,本程序的细化算法要应用于含线条的黑白二值图像才可以看出细化效果。-Note that the thinning algorithm of this procedure should be used with lines of black and white binary image thinning effect can be seen.
- 2023-01-01 00:45:05下载
- 积分:1
-
一个很好的图象处理软件
一个很好的图象处理软件-a good image-processing software
- 2022-04-17 06:44:15下载
- 积分:1
-
OpenGL实现立方体,OpenGl动画主要是通过提供的双缓存实现,经过调试...
OpenGL实现立方体,OpenGl动画主要是通过提供的双缓存实现,经过调试-OpenGL to achieve cube, OpenGl animation is mainly through the provision of double-buffering to achieve, after debugging
- 2022-02-10 13:00:57下载
- 积分:1
-
1。鼠标交互绘制Bezier曲线2。贝塞尔三C0 C1、C2为曲线…
1.鼠标交互式绘制三次bezier曲线
2.Bezier曲线的C0,C1,C2连续拼接,
3.交互式操作(绘制好后可以鼠标拖动控制点,bezier曲线实时更新)-1. Mouse interactive rendering Bezier curves 2.Bezier three curves C0, C1, C2 for splicing, 3. Interactive operations (drawing good can drag the control point the mouse, bezier curves of real-time updates)
- 2022-03-12 20:12:16下载
- 积分:1
-
多窗口编程的C函数库和演示程序
多窗口编程的C函数库和演示程序-more windows on the C function libraries and Demonstration Program
- 2022-03-24 16:26:16下载
- 积分:1
-
医学CT成像算法,小弟得之千辛万苦哦
医学CT成像算法,小弟得之千辛万苦哦-medical CT imaging algorithm, finding someone who painstakingly oh
- 2022-01-26 01:08:35下载
- 积分:1
-
中点画圆,bresenham画圆,中点画线,bresenham画仙,
中点画圆,bresenham画圆,中点画线,bresenham画仙,-midpoint Circle, bresenham Circle, Stipples line bresenham painting cents
- 2022-11-25 19:25:03下载
- 积分:1
-
registration image.two image register
registration image.two image register
- 2022-01-31 12:27:17下载
- 积分:1