Exception:解析表达式出错。 内部错误:参数必须为正且小于宽度。 参数名: x 原始表达式:var img = (System.Drawing.Bitmap) Clipboard.GetImage(); var imgWidth = img.Width; var imgHeight = img.Height; for (int i=1;i<imgWidth;i++) { for (int j=1;j<imgHeight;i++) { if (img.GetPixel(i,j).ToArgb()>0) return $"{i},{j}"; } }

报错信息

Exception: 解析表达式出错。
内部错误:参数必须为正且小于宽度。
参数名: x
原始表达式:var img = (System.Drawing.Bitmap) Clipboard.GetImage();
var imgWidth = img.Width;
var imgHeight = img.Height;
for (int i=1;i<imgWidth;i++)
{
	for (int j=1;j<imgHeight;i++)
	{
		if (img.GetPixel(i,j).ToArgb()>0)
			return $"{i},{j}";
	}
}

StackTrace:
   在 Quicker.Domain.Actions.X.XActionHelper.GetValueFromExpression2(String expression, ActionExecuteContext context)
   在 Quicker.Domain.Actions.X.XActionHelper.<>c__DisplayClass2_3.Y0cA3ZescsV()
   在 A7aeLQvkOp0WI11VorO.lbL9VMvUfBYVBcUvuPD.<>c__DisplayClass3_0.Y688NSJeBgu()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ThreadHelper.ThreadStart()

 

解决方法

暂无解决方案。

相关信息
1 查看
7天15小时前
Quicker版本
版本 反馈次数
1.43.65 1