I'm doing MyPaint application. Now I have some problem.
I have no idea about the code. Can anyone give me some hints? Thanks in advance
Finding out if the user has clicked on the shape could be as easy as implementing a MouseDown event handler on the shape (rectangle.MouseDown += ...). As far as moving and resizing, this example should be useful (you may have to calculate your own scale if you're only using the mouse but it should point you in the right direction): https://msdn.microsoft.com/en-us/library/vstudio/ee649090(v=vs.100).aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.