예제 #1
0
            public ImageInfo(ImageFile img)
            {
                // FIXME We use the memory store to hold the anonymous statements
                // as they are added so that we can query for them later to
                // resolve anonymous nodes.
                store = new MemoryStore();

                if (img == null)
                {
                    return;
                }

                if (img is StatementSource)
                {
                    SemWeb.StatementSource source = (SemWeb.StatementSource)img;
                    source.Select(this);

                    // If we couldn't find the ISO speed because of the ordering
                    // search the memory store for the values
                    if (iso_speed == null && iso_anon != null)
                    {
                        add = false;
                        store.Select(this);
                    }
                }

                if (img is JpegFile)
                {
                    int real_width;
                    int real_height;

                    JpegUtils.GetSize(img.Uri.LocalPath, out real_width, out real_height);
                    width  = real_width.ToString();
                    height = real_height.ToString();
                }
        #if USE_EXIF_DATE
                date = img.Date.ToLocalTime();
        #endif
            }
예제 #2
0
 public StreamSink(SemWeb.StatementSource source, Gtk.HTMLStream stream, InfoDisplay info)
 {
     this.stream = stream;
     this.info   = info;
     this.source = source;
 }
			public StreamSink (SemWeb.StatementSource source, Gtk.HTMLStream stream, InfoDisplay info)
			{
				this.stream = stream;
				this.info = info;
				this.source = source;
			}