private void pictureZXDisplay_MouseDown(object sender, MouseEventArgs e) { if (comboDisplayType.SelectedIndex == 0) //for ScreenView only { if (_mouseSelectionArea == null) { _mouseSelectionArea = new MouseSelectionArea(); } _mouseSelectionArea.MouseDown(pictureZXDisplay, e); } }
//SET manual selection area private void buttonSetManualSelectionArea_Click(object sender, EventArgs e) { string coords = String.Format("{0},{1},{2},{3}", txtbxX0.Text, txtbxY0.Text, txtbxX1.Text, txtbxY1.Text); if (_mouseSelectionArea == null) { _mouseSelectionArea = new MouseSelectionArea(); } _mouseSelectionArea.manualCrop(ref pictureZXDisplay, coords, this.hexNumbersToolStripMenuItem.Checked); ShowZoomedSelectionArea(); }
public GraphicsEditor(ref IDebuggable spectrum) { _spectrum = spectrum; InitializeComponent(); this.Icon = Icon.FromHandle(global::ZXMAK2.Resources.ResourceImages.ImageZxLogo.GetHicon()); this.ShowIcon = true; comboDisplayType.SelectedIndex = 0; comboSpriteWidth.SelectedIndex = 0; comboSpriteHeight.SelectedIndex = 0; bitmapGridSpriteView.Init(_spectrum, Int32.Parse(comboSpriteWidth.Items[0].ToString()), 24); _isInitialised = true; _mouseSelectionArea = null; }