Exemplo n.º 1
0
        private void ImgListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            dynamic row = imgListBox.SelectedItem;

            if (row == null)
            {
                //ImgDisplay.Source = null;
                //readExif.ClearExit();
                return;
            }
            //MessageBox.Show(row.Path);
            ImgPath = row.Path;

            BitmapImage myBitMap = new BitmapImage();

            myBitMap.BeginInit();
            myBitMap.CacheOption = BitmapCacheOption.OnLoad;
            myBitMap.UriSource   = new Uri(ImgPath);
            myBitMap.EndInit();
            ImgDisplay.Source = myBitMap;
            //Modul_Image.readIPTC.ReadIPTC(ImgPath);
            //Modul_Image.readExif.ShowEXIF(ImgPath);
            //ShowMetaDaten();
            ImgHandling.IPTCDaten iptc = new ImgHandling.IPTCDaten(ImgPath);
            //ImgHandling.IPTCDaten.myIPTC_Daten(currImg);

            txtObject.Text = iptc.iObjekt;
            txtDetail.Text = iptc.iDeteil;
            //txtBemerkung.Text = iptc.iBemerkung;
            txtQuelle.Text = iptc.iQuelle;
            txtOrt.Text    = iptc.iFundstelleOrt;
            //txtCountry.Text = iptc.iFundstelleCountry;
            //txtLand.Text = iptc.iFundstelleLand;
            //txtPosition.Text = iptc.iPostition;
            //txtErstellt.Text = iptc.iErstellt;
            //txtDErstellt.Text = iptc.iDigitalErstellt;
            //txtAutor.Text = iptc.iAutor;
            //txtCRight.Text = iptc.iCopyright;
            //txtHinweise.Text = iptc.iHinweise;
            txtStichworte.Text = iptc.iStichwortText;

            //Exif-Daten
            ImgHandling.EXIF.clearExif();
            ImgHandling.EXIF.ReadEXIF(ImgPath);
            txtKamera.Text      = ImgHandling.ExifDaten.Kamera;
            txtBlende.Text      = ImgHandling.ExifDaten.Blende;
            txtBelichtung.Text  = ImgHandling.ExifDaten.Belichtung;
            txtIso.Text         = ImgHandling.ExifDaten.ISO;
            txtBrennweiste.Text = ImgHandling.ExifDaten.Brennweite;
            txtAufnahmeDat.Text = ImgHandling.ExifDaten.AufnahmeDat;
        }
Exemplo n.º 2
0
        public void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.Title = "Metadaten für Objekt-Nr " + cTitel;
            iptc       = new ImgHandling.IPTCDaten(currImg);
            //ImgHandling.IPTCDaten.myIPTC_Daten(currImg);

            txtObject.Text     = iptc.iObjekt;
            txtDetail.Text     = iptc.iDeteil;
            txtBemerkung.Text  = iptc.iBemerkung;
            txtQuelle.Text     = iptc.iQuelle;
            txtSpezial.Text    = iptc.iSpezial;
            txtOrt.Text        = iptc.iFundstelleOrt;
            txtCountry.Text    = iptc.iFundstelleCountry;
            txtLand.Text       = iptc.iFundstelleLand;
            txtPosition.Text   = iptc.iPostition;
            txtErstellt.Text   = iptc.iErstellt;
            txtDErstellt.Text  = iptc.iDigitalErstellt;
            txtAutor.Text      = iptc.iAutor;
            txtCRight.Text     = iptc.iCopyright;
            txtHinweise.Text   = iptc.iHinweise;
            txtStichworte.Text = iptc.iStichwortText;
            ShowListBox();
            BitmapImage myBitMap = new BitmapImage();

            myBitMap.BeginInit();
            myBitMap.CacheOption = BitmapCacheOption.OnLoad;
            myBitMap.UriSource   = new Uri(currImg);
            myBitMap.EndInit();
            ImgDisplay.Source = myBitMap;

            //EXIF-Daten
            ImgHandling.EXIF.ReadEXIF(currImg);
            txtKamera.Text      = ImgHandling.ExifDaten.Kamera;
            txtBlende.Text      = ImgHandling.ExifDaten.Blende;
            txtBelichtung.Text  = ImgHandling.ExifDaten.Belichtung;
            txtISO.Text         = ImgHandling.ExifDaten.ISO;
            txtBrennweite.Text  = ImgHandling.ExifDaten.Brennweite;
            txtAufnahmeDat.Text = ImgHandling.ExifDaten.AufnahmeDat;
            txtLat.Content      = "Latitude (Länge): " + ImgHandling.ExifDaten.Latitude;
            txtLatDez.Content   = "Latitude " + ImgHandling.ExifDaten.LatitudeDez;
            txtLong.Content     = "Longitude (Breite): " + ImgHandling.ExifDaten.Longitude;
            txtLongDez.Content  = "Longitude " + ImgHandling.ExifDaten.LongitudeDez;
            txtAlt.Content      = ImgHandling.ExifDaten.Altitude;
            ImgHandling.EXIF.clearExif();
            //Quellenliste laden und zuweisen
            var quellen = from q in Admin.Admin.conn.Bildtyp orderby q.Bildtyp1 select q.Bildtyp1;

            cbQuelle.ItemsSource = quellen.ToList();
        }