I would like to resize an image from the center instead of top left corner, is that possible?
Judit shared this question 3 years ago
I'm implementing a zoom image functionality and I would like the image to increment according a percentage from the center instead of the top left corner.
I've tried different options:
- move the image after the resize but it looks weird. I can't do it the same time because then looks it doesn't know the size of the image and goes out of the panel.
- Use a dynamic panel with a centered layout but then I lose the drag and drop functionality
- Use different panels but I lose then the zoom in effect
Is there any other option to try? Thanks!