C3204
2025-12-31 efac9037f25e301ca5564354547776737e8562e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
namespace LB_VisionControl
{
    partial class UserHSmartWindowControl
    {
        /// <summary> 
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary> 
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region 组件设计器生成的代码
 
        /// <summary> 
        /// 设计器支持所需的方法 - 不要修改
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            RightContextMenuStrip = new ContextMenuStrip(components);
            resizeImageStripMenuItem = new ToolStripMenuItem();
            autoSizeStripMenuItem = new ToolStripMenuItem();
            mouseIndexStripMenuItem = new ToolStripMenuItem();
            BtmStatusStrip = new StatusStrip();
            StatusLabel = new ToolStripStatusLabel();
            pnl = new Panel();
            hWindowControl = new HalconDotNet.HSmartWindowControl();
            RightContextMenuStrip.SuspendLayout();
            BtmStatusStrip.SuspendLayout();
            pnl.SuspendLayout();
            SuspendLayout();
            // 
            // RightContextMenuStrip
            // 
            RightContextMenuStrip.Items.AddRange(new ToolStripItem[] { resizeImageStripMenuItem, autoSizeStripMenuItem, mouseIndexStripMenuItem });
            RightContextMenuStrip.Name = "RightContextMenuStrip";
            RightContextMenuStrip.Size = new Size(149, 70);
            // 
            // resizeImageStripMenuItem
            // 
            resizeImageStripMenuItem.Name = "resizeImageStripMenuItem";
            resizeImageStripMenuItem.Size = new Size(148, 22);
            resizeImageStripMenuItem.Text = "重新缩放图像";
            resizeImageStripMenuItem.Click += resizeImageStripMenuItem_Click;
            // 
            // autoSizeStripMenuItem
            // 
            autoSizeStripMenuItem.Checked = true;
            autoSizeStripMenuItem.CheckState = CheckState.Checked;
            autoSizeStripMenuItem.Name = "autoSizeStripMenuItem";
            autoSizeStripMenuItem.Size = new Size(148, 22);
            autoSizeStripMenuItem.Text = "图像自动适应";
            autoSizeStripMenuItem.Click += autoSizeStripMenuItem_Click;
            // 
            // mouseIndexStripMenuItem
            // 
            mouseIndexStripMenuItem.Name = "mouseIndexStripMenuItem";
            mouseIndexStripMenuItem.Size = new Size(148, 22);
            mouseIndexStripMenuItem.Text = "鼠标索引像素";
            mouseIndexStripMenuItem.Click += mouseIndexStripMenuItem_Click;
            // 
            // BtmStatusStrip
            // 
            BtmStatusStrip.Items.AddRange(new ToolStripItem[] { StatusLabel });
            BtmStatusStrip.Location = new Point(0, 220);
            BtmStatusStrip.Name = "BtmStatusStrip";
            BtmStatusStrip.Padding = new Padding(1, 0, 16, 0);
            BtmStatusStrip.Size = new Size(274, 22);
            BtmStatusStrip.TabIndex = 44;
            BtmStatusStrip.Text = "statusStrip1";
            // 
            // StatusLabel
            // 
            StatusLabel.Name = "StatusLabel";
            StatusLabel.Size = new Size(0, 17);
            // 
            // pnl
            // 
            pnl.Controls.Add(hWindowControl);
            pnl.Dock = DockStyle.Fill;
            pnl.Location = new Point(0, 0);
            pnl.Name = "pnl";
            pnl.Size = new Size(274, 220);
            pnl.TabIndex = 45;
            // 
            // hWindowControl
            // 
            hWindowControl.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            hWindowControl.AutoValidate = AutoValidate.EnableAllowFocusChange;
            hWindowControl.BackColor = Color.Black;
            hWindowControl.ContextMenuStrip = RightContextMenuStrip;
            hWindowControl.Dock = DockStyle.Fill;
            hWindowControl.HDoubleClickToFitContent = true;
            hWindowControl.HDrawingObjectsModifier = HalconDotNet.HSmartWindowControl.DrawingObjectsModifier.None;
            hWindowControl.HImagePart = new Rectangle(0, 88, 2591, 1767);
            hWindowControl.HKeepAspectRatio = true;
            hWindowControl.HMoveContent = true;
            hWindowControl.HZoomContent = HalconDotNet.HSmartWindowControl.ZoomContent.WheelForwardZoomsIn;
            hWindowControl.Location = new Point(0, 0);
            hWindowControl.Margin = new Padding(4);
            hWindowControl.Name = "hWindowControl";
            hWindowControl.Size = new Size(274, 220);
            hWindowControl.TabIndex = 43;
            hWindowControl.WindowSize = new Size(274, 220);
            hWindowControl.HMouseMove += hWindowControl_HMouseMove;
            hWindowControl.HMouseDown += hWindowControl_HMouseDown;
            hWindowControl.HMouseUp += hWindowControl_HMouseUp;
            // 
            // UserHSmartWindowControl
            // 
            AutoScaleDimensions = new SizeF(96F, 96F);
            AutoScaleMode = AutoScaleMode.Dpi;
            Controls.Add(pnl);
            Controls.Add(BtmStatusStrip);
            Margin = new Padding(4);
            Name = "UserHSmartWindowControl";
            Size = new Size(274, 242);
            Load += UserHSmartWindowControl_Load;
            SizeChanged += UserHSmartWindowControl_SizeChanged;
            MouseWheel += UserHSmartWindowControl_HMouseWheel;
            RightContextMenuStrip.ResumeLayout(false);
            BtmStatusStrip.ResumeLayout(false);
            BtmStatusStrip.PerformLayout();
            pnl.ResumeLayout(false);
            ResumeLayout(false);
            PerformLayout();
        }
 
        #endregion
        private System.Windows.Forms.StatusStrip BtmStatusStrip;
        private System.Windows.Forms.ToolStripStatusLabel StatusLabel;
        private ContextMenuStrip RightContextMenuStrip;
        private ToolStripMenuItem autoSizeStripMenuItem;
        private ToolStripMenuItem mouseIndexStripMenuItem;
        private ToolStripMenuItem resizeImageStripMenuItem;
        private Panel pnl;
        private HalconDotNet.HSmartWindowControl hWindowControl;
    }
}