Exemple #1
0
        private void DoAdjustement(ImageZoomAdjustement adjustementType)
        {
            switch (adjustementType)
            {
            case ImageZoomAdjustement.Enlarge:
                PannablePictureBox.EnlargeImage();
                break;

            case ImageZoomAdjustement.Shrink:
                PannablePictureBox.ShrinkImage();
                break;

            case ImageZoomAdjustement.None:
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(adjustementType), adjustementType, null);
            }
        }
 private void tmrShrink_Tick(object sender, EventArgs e)
 {
     PannablePictureBox.ShrinkImage();
 }