public ImageViewModel(ExGalleryImageListItem listItem) { _listItem = listItem; _image = new ExImage() { Link = _listItem.Link, Thumb = _listItem.Thumb }; }
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(); }
public int AddImage(ExImage image, int nIndexInsert) { return(ExAPI._imglist_addimage(m_hImgList, image.Handle, nIndexInsert)); }
public int SetImage(int nIndex, ExImage image) { return(ExAPI._imglist_setimage(m_hImgList, nIndex, image.Handle)); }
public static bool IsCached(ExImage image) { return(false); }