![]() |
|
首页│注册│帮助 | |||
相关问题
| • | c开发环境 |
| • | 程序外包(bt下载及播放) |
| • | 请问斑竹几句话 |
| • | 怎么控制从数据库读输出? |
| • | [求助]以下pb代码是什么意思啊 |
| • | 为什么会导致VB6.0死掉 |
| • | 请教开发企定管理软件的问题! |
| • | 关于鼠标动作的声音如何添加 |
待解决
【求助】如何实现选择图片中的任意形状的一部分
我想选择图片中的一个长方形,可是这个长方形是斜的,请问怎么实现呀?<BR>或者指导一下怎么得到它的四个顶点也可以,我用cpselect实现时,怎么点击四下,可是得到的却是两个值,也就是说显示的是一个点,请高手指点,急求!!!!谢谢提问者:zzbingshi 2006-06-28 10:39:00
答复
x=ginput(4)
回答者:zhangenter -
2006-07-04 18:45:00
用getrect()函数看看行吗!<BR>GETRECT Select rectangle with mouse.<BR> RECT = GETRECT(FIG) lets you select a rectangle in the<BR> current axes of figure FIG using the mouse. Use the mouse to<BR> click and drag the desired rectangle. RECT is a four-element<BR> vector with the form [xmin ymin width height]. To constrain<BR> the rectangle to be a square, use a shift- or right-click to<BR> begin the drag.<BR> <BR> RECT = GETRECT(AX) lets you select a rectangle in the axes<BR> specified by the handle AX.<BR> <BR> See also GETLINE, GETPTS.
回答者:ysunana -
2006-07-04 16:45:00

