ZedGraph LogoZedGraph Class Library Documentation
CalcScaleFactor Method
NamespacesZedGraphPaneBaseCalcScaleFactor()()
Calculate the scaling factor based on the ratio of the current Rect dimensions and the BaseDimension.
Declaration Syntax
C#Visual BasicVisual C++
public float CalcScaleFactor()
Public Function CalcScaleFactor As Single
public:
float CalcScaleFactor ()
Return Value
A Single value representing the scaling factor to use for the rendering calculations.
Remarks
This scaling factor is used to proportionally scale the features of the MasterPane so that small graphs don't have huge fonts, and vice versa. The scale factor represents a linear multiple to be applied to font sizes, symbol sizes, tic sizes, gap sizes, pen widths, etc. The units of the scale factor are "World Pixels" per "Standard Point". If any object size, in points, is multiplied by this scale factor, the result is the size, in pixels, that the object should be drawn using the standard GDI+ drawing instructions. A "Standard Point" is a dimension based on points (1/72nd inch) assuming that the Rect size matches the BaseDimension. Note that "World Pixels" will still be transformed by the GDI+ transform matrices to result in "Output Device Pixels", but "World Pixels" are the reference basis for the drawing commands.
See Also

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621