Hey, i need to connect between a image(a) with a lines to another image(b).. these lines have to start from center of (A) to bottom or top of image (B) and it has to b in a vertical hierarchy thats i there could b multiple images connected to image a in hierarchy...
i have used a components for image and also for lines..so how can i find center p开发者_运维问答oint of component...
thanks for any help
Ive used this componnet before: http://sammyjoeosborne.com/Examples/Connector/ConnectorExample.html
The connectors automatically connect from center point to centre point of the objects, it may be of some help.
To answer your specific question about the center point of a component, it would be x + w/2 and y + h/2. Hope that helps.
精彩评论