-
Notifications
You must be signed in to change notification settings - Fork 27
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
How to get x,y position of control in control library #195
Comments
When you respond to a mouse event, you can use You can use |
I am not using it on mouse action. I want to get partial image data to crop image on another button click. |
Is there any other way to do this? |
I'm guessing you have some decorator that represents the crop section and you want to figure out where that section is located within the image. Is that correct? |
Yes exactly |
It's done. Used below code to get coordinates
|
I am able to get cropped image data using canvas functionality using below code:
How can I set this cropped image data again to Image control? |
The Instead, I would recommend putting the |
Regarding slicing image data
This interface exposes I will probably start making some image editing utilites that are well tested, but until then, you can use what you have now to grab the image data and send it to |
Ok Thanks, I will try this approach... |
I am developing image crop control. Please let me know how to find control location points X,Y on screen. (In control library I want to find out location of image on screen. Image is child of my control)
The text was updated successfully, but these errors were encountered: