I have a wpf application. There is a image control that shows a image. I have put a canvas on top and I draw line on it. With double click I increase the size of the image control. Hence image in it also increases to fit the image control but the size of the line drawn on the canvas does not change.
I want when I change the size of image shapes like line or rectangle, drawn on image also changes in proportion.
You have to store coords of graphical objects you draw manually.
When you resize image you have to create graphical objects from scratch changing their coords according to zoom factor.
Probably you could use
Matrixobject to make it easier..