protected override void ProcessRequest(RequestItem request)
        {
            try {
                base.ProcessRequest(request);

                Gdk.Pixbuf image = request.result;
                if (image != null)
                {
                    Uri uri;
                    if (File.Exists(request.path))
                    {
                        uri = UriList.PathToFileUri(request.path);
                    }
                    else
                    {
                        uri = new Uri(request.path);
                    }

                    Save(image, uri);
                }

                System.Threading.Thread.Sleep(75);
            } catch (System.Exception e) {
                System.Console.WriteLine(e.ToString());
            }
        }
Exemple #2
0
        protected override void ProcessRequest(RequestItem request)
        {
            try {
                base.ProcessRequest(request);

                Gdk.Pixbuf image = request.result;
                if (image != null)
                {
                    Save(image, request.uri);
                }

                System.Threading.Thread.Sleep(75);
            } catch (System.Exception e) {
                System.Console.WriteLine(e.ToString());
            }
        }
Exemple #3
0
 public void HandleThumbnailLoaded(IImageLoaderThread loader, RequestItem result)
 {
     Reload(result.Uri);
 }
        protected override void ProcessRequest(RequestItem request)
        {
            var size = request.Width == 128 ? ThumbnailSize.Normal : ThumbnailSize.Large;

            request.Result = App.Instance.Container.Resolve <IThumbnailService> ().GetThumbnail(request.Uri, size);
        }
        protected override void ProcessRequest(RequestItem request)
        {
            var size = request.Width == 128 ? ThumbnailSize.Normal : ThumbnailSize.Large;

            request.Result = XdgThumbnailSpec.LoadThumbnail(request.Uri, size);
        }