// 获取:显示器分辨率的宽度
int width = Screen.PrimaryScreen.Bounds.Width;
// 获取:显示器分辨率的高度
int height = Screen.PrimaryScreen.Bounds.Height;