麻辣堂|资源主站|开发论坛|在线手册
首页注册帮助 
Delphi for php 交流论坛
  您现在的位置:Unix5开源世纪 > U5编程社群 > 详细内容
待解决
【求助】如何实现选择图片中的任意形状的一部分
悬赏分:20 - 2006-06-28 10:39:00

【求助】如何实现选择图片中的任意形状的一部分

我想选择图片中的一个长方形,可是这个长方形是斜的,请问怎么实现呀?<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
我也来回答:
不管你有没有帮助我们,瓦岗寨8万村民将感谢你。。。。。

为防止灌水,您需要计算一道数学题: 答案:
88 + 86 = ? 请将计算结果填在上面

 
[]
©2007 PhpRes.COM