Beispiel #1
0
 void OnPageChanged(object sender, PageChangedEventArgs e)
 {
     SetResampler();
     Render.Invoke(viewPort.ScaledRect, viewPort.Scale);
     if (e.NullPage)
     {
         InvokePaint(this, null);
     }
 }
 public void OnPageChanged(object sender, PageChangedEventArgs e)
 {
     if (e.NullPage)
     {
         Disable();
     }
     else
     {
         Enable();
         PageNumber = e.PageNumber;
     }
 }
Beispiel #3
0
        public void OnPageChanged(object sender, PageChangedEventArgs e)
        {
            if (e.NullPage)
            {
                fullSize  = new Size(0, 0);
                zoomToFit = true;
            }
            else
            {
                fullSize = e.Size;
            }

            UpdateBounds();
            MoveDelta(0, 0);
        }