예제 #1
0
 void OnPageChanged(object sender, PageChangedEventArgs e)
 {
     SetResampler();
     Render.Invoke(viewPort.ScaledRect, viewPort.Scale);
     if (e.NullPage)
     {
         InvokePaint(this, null);
     }
 }
예제 #2
0
 public void OnPageChanged(object sender, PageChangedEventArgs e)
 {
     if (e.NullPage)
     {
         Disable();
     }
     else
     {
         Enable();
         PageNumber = e.PageNumber;
     }
 }
예제 #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);
        }