登录
首页 » 图形图像 » 新建一个C++Builder项目 设置Form1的font为“宋体,小五” 在Form1中添加一个TRadioGroup组件rgDrawWhat供选择画什么图形...

新建一个C++Builder项目 设置Form1的font为“宋体,小五” 在Form1中添加一个TRadioGroup组件rgDrawWhat供选择画什么图形...

于 2022-03-05 发布 文件大小:570.47 kB
0 222
下载积分: 2 下载次数: 1

代码说明:

新建一个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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 操纵位的开发包
    操纵位图的开发包-manipulating bitmap Development Kit
    2022-01-26 01:13:38下载
    积分:1
  • Ageia s PhysX(著名的游戏物理库) D3D 9使用代码演示。由于PhysX物理库使用OpenGL代码实现着色,从而使许多用DirectX 3D的...
    Ageia s PhysX(著名的游戏物理库) D3D 9使用代码演示。由于PhysX物理库使用OpenGL代码实现图形着色,从而使许多用DirectX 3D的程序员不能使用/读懂demo代码,这是使用D3D着色引擎重新写的一些demo代码。-Rag doll(带执行文件)-Ageia s PhysX (well-known game physics library) D3D 9 demo using the code. PhysX physics library as a result of the use of OpenGL graphics rendering code so that many use the DirectX 3D programmer can not use/read demo code, which is the use of D3D shaders to re-write some demo code.-Rag doll (with the implementation of document)
    2022-02-27 03:26:23下载
    积分:1
  • 本地脚本<Vbscript>生成随机数字,用显示!
    本地脚本生成随机数字,用图像显示!-err
    2022-03-23 11:48:26下载
    积分:1
  • 贺兰山岩画边缘检测代码
    针对贺兰山岩画提出了3个合适的边缘检测算法。算法的核心是将岩画的亮度信息和彩色信息,融合于非线性双边滤波技术,通过
    2023-03-31 13:45:04下载
    积分:1
  • 检测直线的Hough变换,峰值检测,线性检测连接号…
    检测直线的hough变换,峰值检测,线检测和链接的用matlab实现 -line detection hough transform, peak detector, linear detection and link with the realization of Matlab
    2023-03-18 02:35:03下载
    积分:1
  • 实现基于目标跟踪质量的程序
    本程序实现了基于质心法的目标跟踪,由于算法比较简单,因此背景颜色必须简单,最好是纯白色的。本程序先经过对视频图像的灰度化,二值化等一些图像处理,然后找出质心。程序中用到了Opencv库函数-Realize this procedure based on the quality of target tracking-force, due to relatively simple algorithm, so the need for a simple background color, the best was pure white. This procedure, after the first video images of gray and binary image processing, such as, and then find the center of mass. Procedures used in the library function Opencv
    2022-02-02 16:04:58下载
    积分:1
  • 学基础之学模板
    图形学基础之图形学模板-graphics Base graphics template
    2022-05-16 18:10:16下载
    积分:1
  • CopyScreenTest 拷屏
    拷屏程序源码。。。。。 Qt实现,copyScreen  
    2023-01-25 00:50:03下载
    积分:1
  • Using CUDA for hierachy clustering taking advantages of Pararell programming
    利用NIVIDIA公司的GPU编程SDK CUDA进行聚类分析-Using CUDA for hierachy clustering taking advantages of Pararell programming
    2022-05-13 06:21:32下载
    积分:1
  • multi
    multi-surface plotter.
    2022-02-03 13:14:58下载
    积分:1
  • 696516资源总数
  • 106600会员总数
  • 11今日下载