我有一台1080P显示器.干
int j Screen.PrimaryScreen.Bounds.Width;
int k = Screen.PrimaryScreen.Bounds.Height;
_Bitmap.GetPixel(j, k).GetBrightness();
Run Code Online (Sandbox Code Playgroud)
(_Bitmap大小等于我的屏幕边界),它抛出一个异常,说"参数必须为正且<height".
我正在尝试打开MSPAINT最大化并同时打开一个文件.我知道如何用油漆打开文件并查看图像,但我无法用图像打开油漆并使油漆最大化.
这是我的代码:
static void Butten1(object sender, EventArgs e) {
ProcessStartInfo Info = new ProcessStartInfo() {
FileName = "mspaint.exe",
WindowStyle = ProcessWindowStyle.Maximized
};
Process.Start(Info);
}
Run Code Online (Sandbox Code Playgroud)