|
-
May 27th, 2009, 01:26 AM
#1
algo for dragging object!!
am designing a project in which i have to allow users to allow drag various shapes that are made according to the request of user on layout can ne1 plz suggest me some algo for this......
this is what I thought
1.compare the pixel of point where left click occurs with d colour of any valid shape colour that is previously defined.
2.if found to any object go through all index of all shapes of that type
3.Now i have to compare this point with all boundries of all objects of this shape
PLZZ SUGGEST ANY THING FOR STEP-3
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|