Exemplo n.º 1
0
        public static void SetDescktopBackgroundImage(图片 T)
        {
            Image  image   = T.ImageInfo;
            string windows = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
            string bmppath = Path.Combine(windows, "WallPaper.bmp");

            image.Save(bmppath, System.Drawing.Imaging.ImageFormat.Bmp);
            User32.SystemParametersInfo(20, 0, bmppath, 0x2);
        }
Exemplo n.º 2
0
 public void 在_绘制(Point point, 图片 image)
 {
     graphics.DrawImage(image.ImageInfo, point);
 }