/// <summary> /// Download |image_url| and execute |callback| on completion with the images /// received from the renderer. If |is_favicon| is true then cookies are not /// sent and not accepted during download. Images with density independent /// pixel (DIP) sizes larger than |max_image_size| are filtered out from the /// image results. Versions of the image at different scale factors may be /// downloaded up to the maximum scale factor supported by the system. If there /// are no image results <= |max_image_size| then the smallest image is resized /// to |max_image_size| and is the only result. A |max_image_size| of 0 means /// unlimited. If |bypass_cache| is true then |image_url| is requested from the /// server even if it is present in the browser cache. /// </summary> public void DownloadImage(string imageUrl, bool isFavIcon, uint maxImageSize, bool bypassCache, CefDownloadImageCallback callback) { BrowserHost?.DownloadImage(imageUrl, isFavIcon, maxImageSize, bypassCache, callback); }
/// <summary> /// Download |image_url| and execute |callback| on completion with the images received from /// the renderer. /// </summary> /// <param name="imageUrl"> /// </param> /// <param name="isFavicon"> /// If |is_favicon| is True then cookies are not sent and not accepted during download. /// </param> /// <param name="maxImageSize"> /// Images with density independent pixel (DIP) sizes larger than |max_image_size| are filtered /// out from the image results. Versions of the image at different scale factors may be downloaded /// up to the maximum scale factor supported by the system. If there are no image results /// < = |max_image_size| then the smallest image is resized to |max_image_size| and is the only /// result. A |max_image_size| of 0 means unlimited. /// </param> /// <param name="bypassCache"> /// If |bypass_cache| is True then |image_url| is requested from the server even if it is present /// in the browser cache. /// </param> public void DownloadImage(string imageUrl, bool isFavicon, int maxImageSize, bool bypassCache, CefDownloadImageCallback callback) { if (imageUrl == null) { throw new ArgumentNullException(nameof(imageUrl)); } AliveBrowserHost.DownloadImage(imageUrl, isFavicon, (uint)maxImageSize, bypassCache, callback); }