Пример #1
0
 private void ActualPixels()
 {
     Zoom.Mode  = "ActualPixels";
     Zoom.Value = 1;
     ScaleImage();
     ZoomComboBox.SelectedIndex = ZoomComboBox.FindStringExact("100%");
 }
Пример #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            ZoomComboBox.SelectedIndex = ZoomComboBox.FindStringExact("100%");
            this.ActiveControl         = ImageBox;

            ImageBox.MouseDown    += PanMouseDown;
            ImageBox.MouseUp      += PanMouseUp;
            BottomPanel.MouseDown += PanMouseDown;
            BottomPanel.MouseUp   += PanMouseUp;
        }