Exemple #1
0
 //
 // METHODS
 //
 public void OnThumbnailDownloaded(ThumbnailEventArgs e)
 {
     if (this.ThumbnailDownloaded != null)
     {
         this.ThumbnailDownloaded(this, e);
     }
 }
        //
        // METHODS
        //
        public void Execute()
        {
            try {
                // Perform Synchronous Image Request
                byte[] bytes = this.ImageServer.GetImage(this.GeoImageDescription);

                // Build return event arguments
                ThumbnailEventArgs e = new ThumbnailEventArgs()
                {
                    XMin  = this.XMin,
                    YMin  = this.YMin,
                    XMax  = this.XMax,
                    YMax  = this.YMax,
                    Bytes = bytes
                };
                foreach (KeyValuePair <string, object> kvp in this.Attributes)
                {
                    e.Attributes.Add(kvp.Key, kvp.Value);
                }

                // Invoke event in parent class
                this.MosaicExtractor.OnThumbnailDownloaded(e);
            }
            catch { }
        }
        //
        // METHODS
        //
        public void Execute()
        {
            try {
                // Perform Synchronous Image Request
                byte[] bytes = this.ImageServer.GetImage(this.GeoImageDescription);

                // Build return event arguments
                ThumbnailEventArgs e = new ThumbnailEventArgs() {
                    XMin = this.XMin,
                    YMin = this.YMin,
                    XMax = this.XMax,
                    YMax = this.YMax,
                    Bytes = bytes
                };
                foreach (KeyValuePair<string, object> kvp in this.Attributes) {
                    e.Attributes.Add(kvp.Key, kvp.Value);
                }

                // Invoke event in parent class
                this.MosaicExtractor.OnThumbnailDownloaded(e);
            }
            catch { }
        }
 //
 // METHODS
 //
 public void OnThumbnailDownloaded(ThumbnailEventArgs e)
 {
     if (this.ThumbnailDownloaded != null) {
         this.ThumbnailDownloaded(this, e);
     }
 }