|
|
 |
mzavala$ mzavala 04/27/2007 :: 01:30
Anonyme
| | Is there a way to zoom an image from viewer size to screen size and turn it back to viewer size?
Thanks in advanced | |
 |
toc$2007102 toc 04/27/2007 :: 12:57
Registered
| | in vb? pretty simple, set the gdviewer and form to screen size and back and image will automatically retain zoom, if you have controls on this form create another which opens full screen with just has viewer on it 
Hope that helps, Rich | |
 |
mzavala$ mzavala 05/03/2007 :: 18:32
Anonyme
| | It works... just once, maybe I'm doing something wrong... here's the code:
I call the second form If e.button = 2 Then Dim frmra As fsImg fsImg.nomimg = c frmra = fsImg.Instance frmra.ShowDialog() Exit Sub End If When the 2nd form loads: gdv.Left = Me.Left gdv.Width = Me.Width gdv.Height = Me.Height gdv.MouseMode = 1 gdv.EnableMenu = False If oGdP.LoadFromFile(nomimg) = 0 Then Call RefreshPictureInformations() End If gdv.ZoomMode = 2
By the way... the instance I'm using is just to check if form is nothing or disposed. | |