}//创建pictureInfo对象的缩略图并提取到内存

        public static void CreateSmallVersion(PictureInfo pictureInfo)
        {
            if (!Directory.Exists(System.IO.Path.GetDirectoryName(pictureInfo.SmallVersionPath)))
            {
                try
                {
                    Directory.CreateDirectory(System.IO.Path.GetDirectoryName(pictureInfo.SmallVersionPath));
                    File.SetAttributes(Path.GetDirectoryName(pictureInfo.SmallVersionPath), FileAttributes.Hidden);
                }
                catch { }
            }
            ThumbNailMaker.GetReducedImageFitSize((App.Current as App).SmallWidth, (App.Current as App).SmallHeight, pictureInfo.AbsolutePath, pictureInfo.SmallVersionPath);
        }//创建pictureInfo对象的大缩略图
        }//创建pictureInfo对象的大缩略图

        internal static bool CreateThumb(PictureInfo pictureInfo)
        {
            if (System.IO.File.Exists(pictureInfo.ThumbPath))
            {
                return(true);
            }
            if (!System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(pictureInfo.ThumbPath)))
            {
                try
                {
                    System.IO.Directory.CreateDirectory(System.IO.Path.GetDirectoryName(pictureInfo.ThumbPath));
                    File.SetAttributes(System.IO.Path.GetDirectoryName(pictureInfo.ThumbPath), System.IO.FileAttributes.Hidden);
                }
                catch { return(false); }
            }
            if (ThumbNailMaker.GetReducedImage((App.Current as App).ThumbWidth, (App.Current as App).ThumbHeight, pictureInfo.AbsolutePath, pictureInfo.ThumbPath))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }//创建缩略图并提取到内存