Hello Frans,
To add lines to your image you should use our canvas class's DrawLine function. Simply store a copy of your original AtalaImage and add lines whenever the zoom level changes.
AtalaImage origin = new AtalaImage("MyTiff.tif");
AddLineToViewer(origin,myViewer, 10);
public AddLineToViewer(AtalaImage origin, ImageViewer viewer, int x)
{
viewer.Image = origin.Clone();
Canvas c = new Canvas(viewer.Image);
c.DrawLine(new Point(x,0) ,new Point(x,viewer.Image.Height));
}
Then whenever you want to redraw the line simply recall AddLineToViewer to add one line to the viewer.
Let me know if this helps.
~Kevin