Hi! I’m here again with the question.
I have an image object that I would like to display firstly small, but I want that when the user clicks and holds mouse pressed on the image and than starts to move mouse, the image should become bigger or smaller(depends on the direction of mouse). What I’ve firstly tried:
in mousePressed() function I added
but…well…I understand it is not right as I need the left down corner of the picture be at the position of mouseX,mouseY. And what do I do when the image is not square, but round?
Thanks! Tried to use it in my code, wokrs good, just needs a little bit of polishing to fit in my program properly and I managed to keep ratio! I am very grateful!