C# WPF Image Point to Point animation
<p>I need to pan an image at a preset Scale level (no zoom). When panning from left to right, I need the left-side of the image to disappear as the leading right edge appears. This would give the image the appearance of a video as the camera pans the scene. What I've done so far:</p>

<pre><code>double origX = 0.0;
double origY = 0.5;
double newx;
double newy;

image1.RenderTransformOrgin = new Point(origX, origY);

image1.RenderTransform = new ScaleTransform(2.0, 2.0);

if (newX == 0.0)
{
 image1.RenderTransformOrgin = new Point(origX, origY);
}
else
{
 image1.RenderTransformOrgin = new Point(newX, newY);
}
</code></pre>

<p>Using this code I am able to start the virtual "camera lens" on the left and then move it to any other point of the image. By manually increasing newX's value incrementally I am able to create the effect I need. My question is how best to increase the newX value to produce a smooth, animated appearance? Thank You.</p>