I have a problem when drawing shapes to a canvas with an image on it in SWT. The scrollbars I have added draw the drawn shapes relative to the currently viewed area and NOT the image space. So if i move the scroll bar (0, 0) becomes somewhere completely different and the shapes that get drawn on the image are in the wrong place. How can I draw relative to the image and its size?