chunxiaqiu
2026-03-18 46431fb658701489f8d5de4475b02df728c51f36
LB_VisionControl/UserHSmartWindowControl.Designer.cs
@@ -44,14 +44,15 @@
            // 
            // RightContextMenuStrip
            // 
            RightContextMenuStrip.ImageScalingSize = new Size(20, 20);
            RightContextMenuStrip.Items.AddRange(new ToolStripItem[] { resizeImageStripMenuItem, autoSizeStripMenuItem, mouseIndexStripMenuItem });
            RightContextMenuStrip.Name = "RightContextMenuStrip";
            RightContextMenuStrip.Size = new Size(149, 70);
            RightContextMenuStrip.Size = new Size(169, 82);
            // 
            // resizeImageStripMenuItem
            // 
            resizeImageStripMenuItem.Name = "resizeImageStripMenuItem";
            resizeImageStripMenuItem.Size = new Size(148, 22);
            resizeImageStripMenuItem.Size = new Size(168, 26);
            resizeImageStripMenuItem.Text = "重新缩放图像";
            resizeImageStripMenuItem.Click += resizeImageStripMenuItem_Click;
            // 
@@ -60,39 +61,41 @@
            autoSizeStripMenuItem.Checked = true;
            autoSizeStripMenuItem.CheckState = CheckState.Checked;
            autoSizeStripMenuItem.Name = "autoSizeStripMenuItem";
            autoSizeStripMenuItem.Size = new Size(148, 22);
            autoSizeStripMenuItem.Size = new Size(168, 26);
            autoSizeStripMenuItem.Text = "图像自动适应";
            autoSizeStripMenuItem.Click += autoSizeStripMenuItem_Click;
            // 
            // mouseIndexStripMenuItem
            // 
            mouseIndexStripMenuItem.Name = "mouseIndexStripMenuItem";
            mouseIndexStripMenuItem.Size = new Size(148, 22);
            mouseIndexStripMenuItem.Size = new Size(168, 26);
            mouseIndexStripMenuItem.Text = "鼠标索引像素";
            mouseIndexStripMenuItem.Click += mouseIndexStripMenuItem_Click;
            // 
            // BtmStatusStrip
            // 
            BtmStatusStrip.ImageScalingSize = new Size(20, 20);
            BtmStatusStrip.Items.AddRange(new ToolStripItem[] { StatusLabel });
            BtmStatusStrip.Location = new Point(0, 220);
            BtmStatusStrip.Location = new Point(0, 280);
            BtmStatusStrip.Name = "BtmStatusStrip";
            BtmStatusStrip.Padding = new Padding(1, 0, 16, 0);
            BtmStatusStrip.Size = new Size(274, 22);
            BtmStatusStrip.Padding = new Padding(1, 0, 20, 0);
            BtmStatusStrip.Size = new Size(342, 22);
            BtmStatusStrip.TabIndex = 44;
            BtmStatusStrip.Text = "statusStrip1";
            // 
            // StatusLabel
            // 
            StatusLabel.Name = "StatusLabel";
            StatusLabel.Size = new Size(0, 17);
            StatusLabel.Size = new Size(0, 16);
            // 
            // pnl
            // 
            pnl.Controls.Add(hWindowControl);
            pnl.Dock = DockStyle.Fill;
            pnl.Location = new Point(0, 0);
            pnl.Margin = new Padding(4);
            pnl.Name = "pnl";
            pnl.Size = new Size(274, 220);
            pnl.Size = new Size(342, 280);
            pnl.TabIndex = 45;
            // 
            // hWindowControl
@@ -104,29 +107,30 @@
            hWindowControl.Dock = DockStyle.Fill;
            hWindowControl.HDoubleClickToFitContent = true;
            hWindowControl.HDrawingObjectsModifier = HalconDotNet.HSmartWindowControl.DrawingObjectsModifier.None;
            hWindowControl.HImagePart = new Rectangle(0, 88, 2591, 1767);
            hWindowControl.HImagePart = new Rectangle(-321, -152, 3233, 2247);
            hWindowControl.HKeepAspectRatio = true;
            hWindowControl.HMoveContent = true;
            hWindowControl.HZoomContent = HalconDotNet.HSmartWindowControl.ZoomContent.WheelForwardZoomsIn;
            hWindowControl.Location = new Point(0, 0);
            hWindowControl.Margin = new Padding(4);
            hWindowControl.Margin = new Padding(5);
            hWindowControl.Name = "hWindowControl";
            hWindowControl.Size = new Size(274, 220);
            hWindowControl.Size = new Size(342, 280);
            hWindowControl.TabIndex = 43;
            hWindowControl.WindowSize = new Size(274, 220);
            hWindowControl.WindowSize = new Size(342, 280);
            hWindowControl.HMouseMove += hWindowControl_HMouseMove;
            hWindowControl.HMouseDown += hWindowControl_HMouseDown;
            hWindowControl.HMouseUp += hWindowControl_HMouseUp;
            hWindowControl.HMouseDoubleClick += hWindowControl_HMouseDoubleClick;
            // 
            // UserHSmartWindowControl
            // 
            AutoScaleDimensions = new SizeF(7F, 17F);
            AutoScaleMode = AutoScaleMode.Font;
            AutoScaleDimensions = new SizeF(120F, 120F);
            AutoScaleMode = AutoScaleMode.Dpi;
            Controls.Add(pnl);
            Controls.Add(BtmStatusStrip);
            Margin = new Padding(4);
            Margin = new Padding(5);
            Name = "UserHSmartWindowControl";
            Size = new Size(274, 242);
            Size = new Size(342, 302);
            Load += UserHSmartWindowControl_Load;
            SizeChanged += UserHSmartWindowControl_SizeChanged;
            MouseWheel += UserHSmartWindowControl_HMouseWheel;