C#如何设置桌面背景
作者:互联网
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")] public static extern int SystemParametersInfo( int uAction, int uParam, string lpvParam, int fuWinIni ); private void button1_Click(object sender, EventArgs e) { Image image = Image.FromFile("D:\\AAA.jpg"); image.Save("D:\\AAA.bmp",System.Drawing.Imaging.ImageFormat.Bmp); SystemParametersInfo(20, 0, "D:\\AAA.bmp", 0x2); }
标签:AAA,C#,image,bmp,桌面背景,int,SystemParametersInfo,设置,Image 来源: https://www.cnblogs.com/yinmu/p/12658054.html