-
新建一个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
-
这是一个图像处理中的直方图显示
这是一个图像处理中的直方图显示-This is an image processing histogram shows
- 2022-03-04 15:55:38下载
- 积分:1
-
不错的源码
不错的源码-Good source
- 2022-04-19 08:58:16下载
- 积分:1
-
黑白棋
能运行
mfc
功能强大
程序教程
黑白棋
能运行
mfc
功能强大
程序教程
-good
- 2022-07-17 19:24:45下载
- 积分:1
-
The use of wavelet transform features a simple OCR program, mainly cut into a fe...
利用小波变换的特点编写了一个简单的OCR程序,主要分为几个块使用垂直、水平、角度的能量计算
- 2022-05-07 07:10:45下载
- 积分:1
-
图形颜色量化和材料压缩源代码,C++语言,有限公司..
图形色彩量子化及材质压缩程序源代码,c语言实现,包含可执行文件-graphics color quantization and material compression source code, c language, contains executable files
- 2022-02-04 20:23:42下载
- 积分:1
-
类似微软的菜单,用javascript写的
类似微软的菜单,用javascript写的-similar to Microsoft"s menu, written with javascript
- 2022-07-25 15:28:51下载
- 积分:1
-
bmp浏览器,编译成功
bmp浏览器,编译成功-bmp browser, compiler success
- 2022-04-22 18:27:47下载
- 积分:1
-
VC图像粗化和细化,只能处理256色图像,连续…
用于vc++图象粗化和细化处理,只能处理256色以下的图象,可连续处理.-for vc images rough and refined, can only handle 256 colors of images, continuous processing.
- 2022-12-17 20:50:02下载
- 积分:1
-
用Idl编写的,绝对真实再现了3维变换的最高境界
用Idl编写的,绝对真实再现了3维变换的最高境界-Prepared using idl absolutely true 3-dimensional transform represents the highest state of
- 2022-02-04 19:31:58下载
- 积分:1