Profile Picture

Valid zoom factor range

Posted By Kirill Shemanayev 13 Years Ago
Author
Message
Steve Warner
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 15, Visits: 1
Was having the same problem myself. You need to make sure that the MinZoomFactor and MaxZoomFactor are set or else Zoom will not accept your zoom factor. They are NDrawingDocument.Settings.MinZoomFactor and NDrawingDocument.Settings.MaxZoomFactor.

Kirill Shemanayev
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1
What is the range of valid zoom factors in NDrawingView.Zoom method?
I am passing a float value in the 0 to 1 range. However occasionally getting the error:
 System.ArgumentException: The specified zoom factor is not valid
 Parameter name: zoom
 at Nevron.Diagram.WinForm.NDrawingView.Zoom(Single zoom, NPointF viewportCenter)




Similar Topics


Reading This Topic