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());
            }
        }
Exemplo n.º 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());
            }
        }
Exemplo n.º 3
0
 public void HandleThumbnailLoaded(IImageLoaderThread loader, RequestItem result)
 {
     Reload(result.Uri);
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        protected override void ProcessRequest(RequestItem request)
        {
            var size = request.Width == 128 ? ThumbnailSize.Normal : ThumbnailSize.Large;

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