Hi
I want to add undo to my application but I'm running up against a small problem. You've already kindly helped with the zooming in this post
As you can see from my previous post when I load the image to the bitmapviewer I set the zoom at the same time in the code behind. However when I add an undo button using the following code it doesn't respect the zoom.
aspx snippet:
vb.net snippet
What do I need to do to get the zoom set on load and on undo?
I want to add undo to my application but I'm running up against a small problem. You've already kindly helped with the zooming in this post
As you can see from my previous post when I load the image to the bitmapviewer I set the zoom at the same time in the code behind. However when I add an undo button using the following code it doesn't respect the zoom.
aspx snippet:
function undo(){
bitmapViewer1.invokeRemoteMethod("undo");
}
vb.net snippet
<Aurigma.GraphicsMill.WebControls.RemoteScriptingMethod()> _
Public Sub undo()
If Not BitmapViewer1.Bitmap.IsEmpty Then
If BitmapViewer1.Bitmap.CanUndo Then
BitmapViewer1.Bitmap.Undo()
End If
End If
End Sub
What do I need to do to get the zoom set on load and on undo?