Exemplo n.º 1
0
        private bool SetDesktopWallpaper(Image image, Style style)
        {
            if (image == null)
            {
                return(false);
            }
            _temporaryWaitForDeleteFiles = CacheFileManager.GetTempPath().Replace("tmp", "jpg");

            File.Create(_temporaryWaitForDeleteFiles).Close();
            image.Save(_temporaryWaitForDeleteFiles, image.RawFormat);

            return(SetDesktopWallpaper(_temporaryWaitForDeleteFiles, style));
        }