优化用户界面

This commit is contained in:
Xu Liu 2021-06-13 22:16:16 +08:00
commit f2da359c3f
3 changed files with 10 additions and 10 deletions

View file

@ -65,7 +65,7 @@ namespace Magpie {
//
this.txtHotkey.Location = new System.Drawing.Point(55, 21);
this.txtHotkey.Name = "txtHotkey";
this.txtHotkey.Size = new System.Drawing.Size(196, 25);
this.txtHotkey.Size = new System.Drawing.Size(164, 25);
this.txtHotkey.TabIndex = 1;
this.txtHotkey.TextChanged += new System.EventHandler(this.TxtHotkey_TextChanged);
//
@ -80,7 +80,7 @@ namespace Magpie {
//
// cbbScaleMode
//
this.cbbScaleMode.DropDownWidth = 196;
this.cbbScaleMode.DropDownWidth = 230;
this.cbbScaleMode.ItemHeight = 15;
this.cbbScaleMode.Location = new System.Drawing.Point(79, 24);
this.cbbScaleMode.Name = "cbbScaleMode";
@ -184,7 +184,7 @@ namespace Magpie {
//
// cbbCaptureMode
//
this.cbbCaptureMode.DropDownWidth = 196;
this.cbbCaptureMode.DropDownWidth = 187;
this.cbbCaptureMode.ItemHeight = 15;
this.cbbCaptureMode.Items.AddRange(new object[] {
"WinRT Capture",
@ -207,9 +207,9 @@ namespace Magpie {
// groupBox2
//
this.groupBox2.Controls.Add(this.ckbShowFPS);
this.groupBox2.Location = new System.Drawing.Point(212, 182);
this.groupBox2.Location = new System.Drawing.Point(200, 182);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(147, 60);
this.groupBox2.Size = new System.Drawing.Size(116, 60);
this.groupBox2.TabIndex = 12;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "高级";
@ -217,7 +217,7 @@ namespace Magpie {
// btnScale
//
this.btnScale.AutoSize = true;
this.btnScale.Location = new System.Drawing.Point(268, 21);
this.btnScale.Location = new System.Drawing.Point(225, 21);
this.btnScale.Name = "btnScale";
this.btnScale.Size = new System.Drawing.Size(91, 25);
this.btnScale.TabIndex = 13;
@ -235,7 +235,7 @@ namespace Magpie {
this.groupBox1.Controls.Add(this.cbbInjectMode);
this.groupBox1.Location = new System.Drawing.Point(15, 52);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(344, 121);
this.groupBox1.Size = new System.Drawing.Size(301, 121);
this.groupBox1.TabIndex = 14;
this.groupBox1.TabStop = false;
//
@ -248,7 +248,7 @@ namespace Magpie {
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(377, 259);
this.ClientSize = new System.Drawing.Size(331, 259);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnScale);
this.Controls.Add(this.groupBox2);

View file

@ -29,14 +29,14 @@
#### 抓取模式
程序如何抓取源窗口图像,有三种选择:
指示程序如何抓取源窗口图像
1. WinRT Capture使用[Screen Capture API](https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/screen-capture)抓取窗口最推荐的方法。此API从Windows 10, v1803开始提供。
2. GDI使用GDI抓取源窗口速度稍慢
#### 注入模式
如果源程序使用了自定义光标,屏幕上可能出现两个光标,使用进程注入可解决这个问题。有三种选择:
如果源程序使用了自定义光标,屏幕上可能出现两个光标,使用进程注入可解决这个问题
1. 不使用注入:适用于源窗口没有自定义光标的场合
2. 运行时注入:在窗口运行时按下热键可进入全屏并注入窗口,退出全屏后取消注入

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Before After
Before After