C# - 在查询字符串中传递颜色

C# - passing color in a query string

我正在使用

ImageBuilder.Current.Build(new ImageJob(file, fileName, new Instructions(string.Format("width={0}&height={1}&format=jpg&{2}=auto", width, height, croppingType)), false, false));

要在特定设置中调整我的照片大小,我想要的是当用户在查询字符串中写入颜色值以将其传递到 new Instructions() 中以指定所需的颜色时。

参见the full command reference

bgcolor=color name | hex code (6-char). Sets the background/whitespace color.

例如:bgcolor=ffffff 将背景设置为白色。