-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line x2-y2 #33
Comments
Hi, So, first thing, I recommend you read this page from the Wiki ItemContainer Overview, also there's a link pointing to how I implemented something similar to what you've described inside my demo, with Adorners (Adorner Usage), maybe you can clone/download the repo and play around with the demo. Is not fully working, but for a Line drawn with Scale=(1,1) (normally) the resize works as you described. Making it work with another In the first comment, you said that calculating I hope this can help you getting your correct value and the desired behavior. I don't know the details of implementation about that "Switch element", so that's what I can say so far. It's quite tricky working with Transformations and calculating stuff, I know😅, take a look at the |
In my implementation resizing 360 degree is not possible, but it can definitely be implemented. You can debug and try to find a solution and understand how it's working now and how you can achieve it for other ScalTransform values. |
Thank you for your message, I read and I guess, I understand the logic of adorner/drawing classes and tried something like that:
X2-Y2 of container is actually x2-y2 position of line. I set this according to Mouse Position when draw is ended. |
Hi! I will try to give you a piece of code that works when I find some time to do this. I'm thinking of adding this as a feature to the library in the future. It is probably doable. Sorry for not being able to come with a response now. I will try to come back asap. Thanks! |
Hello,
I want to find x2-y2 position of line as point and with left + width and top + height couldn't get the correct x2-y2 values. Any ideas to find that?
The text was updated successfully, but these errors were encountered: