Esempio n. 1
0
 public ImageViewModel(ExGalleryImageListItem listItem)
 {
     _listItem = listItem;
     _image    = new ExImage()
     {
         Link = _listItem.Link, Thumb = _listItem.Thumb
     };
 }
Esempio n. 2
0
        private static async Task StartImageDownloadAsync(ExGallery gallery, ExGalleryImageListItem image, StorageFile file, BackgroundDownloader downloader)
        {
            Debug.WriteLine(image.Link);

            var htmlSource = await ExClient.GetStringWithExCookie($"{image.Link}");

            Uri uri = new Uri(ExImage.GetImageUriFromHtml(htmlSource));
            DownloadOperation download = downloader.CreateDownload(uri, file);

            download.StartAsync();
        }
Esempio n. 3
0
 public int AddImage(ExImage image, int nIndexInsert)
 {
     return(ExAPI._imglist_addimage(m_hImgList, image.Handle, nIndexInsert));
 }
Esempio n. 4
0
 public int SetImage(int nIndex, ExImage image)
 {
     return(ExAPI._imglist_setimage(m_hImgList, nIndex, image.Handle));
 }
Esempio n. 5
0
 public static bool IsCached(ExImage image)
 {
     return(false);
 }