/// <summary> /// Returns true (1) if this Image and |that| Image share the same underlying /// storage. Will also return true (1) if both images are NULL. /// </summary> public unsafe virtual bool IsSame(CefImage that) { return(SafeCall(NativeInstance->IsSame((that != null) ? that.GetNativeInstance() : null) != 0)); }
/// <summary> /// Method that will be executed when the image download has completed. /// |image_url| is the URL that was downloaded and |http_status_code| is the /// resulting HTTP status code. |image| is the resulting image, possibly at /// multiple scale factors, or NULL if the download failed. /// </summary> protected internal unsafe virtual void OnDownloadImageFinished(string imageUrl, int httpStatusCode, CefImage image) { }
private static unsafe void OnDownloadImageFinishedImpl(cef_download_image_callback_t *self, cef_string_t *image_url, int http_status_code, cef_image_t *image) { var instance = GetInstance((IntPtr)self) as CefDownloadImageCallback; if (instance == null || ((ICefDownloadImageCallbackPrivate)instance).AvoidOnDownloadImageFinished()) { ReleaseIfNonNull((cef_base_ref_counted_t *)image); return; } instance.OnDownloadImageFinished(CefString.Read(image_url), http_status_code, CefImage.Wrap(CefImage.Create, image)); }
/// <summary> /// Method that will be executed when the image download has completed. /// |image_url| is the URL that was downloaded and |http_status_code| is the /// resulting HTTP status code. |image| is the resulting image, possibly at /// multiple scale factors, or NULL if the download failed. /// </summary> public unsafe virtual void OnDownloadImageFinished(string imageUrl, int httpStatusCode, CefImage image) { }