Dim newForm As Form
newForm.Initialize("digiSignForm",530,380)
newForm.Resizable = False
newForm.RootPane.LoadLayout("MainPage")
newForm.ShowAndWait
pnDraw = xui.CreatePanel("")
'
'MainForm.AddView(pnDraw, ImageView1.Left, ImageView1.Top,ImageView1.Width, ImageView1.Height)
Log(ImageView1.Width & " " & ImageView1.Height)
mCanvas.Initialize(pnDraw)
mRect.Initialize(0, 0, ImageView1.Width, ImageView1.Height)
mCanvas.DrawBitmap(ImageView1.Snapshot, mRect)