private void RecalculateZoom()
{
if(_bAutomaticOrientation)
{
if(Height > (Width*2) && this._Orientation == enumOrientation.orHorizontal)
this.Orientation = enumOrientation.orVertical;
else if(Width > (Height*2) && this._Orientation == enumOrientation.orVertical)
this.Orientation = enumOrientation.orHorizontal;
}
_iDisplaySize = (this.Orientation == enumOrientation.orHorizontal) ? Width : Height;
_iDisplaySize = _iDisplaySize - (_iSideOffset* 3);
if(_iDisplaySize > 0)
ZoomFactor = ((float) _iDisplaySize / (float) ((float) (_lEndMillisecond - _lStartMillisecond)/MillisecondScale));
}