Hi,
Need a little help to draw a rectangle shape after zooming an entity(image).
I am using view class to zoom an image. I have two view -
1/ that draws the images, main view
2/ to draw the rectangle, overlay view
Everything is working fine. But the problem comes when I zoom an image using main.zoom(200%), normal is 100%. The image size increases, My question is, how do I make the overlay rectangle zoom with main view, without changing its pixel size. I have attached an image. This is a selection rectangle that every application uses to show the user that an image is selected.
The right side(100%) and left side(200%) image is what I am getting. What I actually want to make is the third(bottom) image.
I am using SFML and wxWidgets.
Thanks in advance.