示例#1
0
 private void embedThumbnailToolStripButton_Click(object sender, EventArgs e)
 {
     if (fdOpen.ShowDialog() == DialogResult.OK)
     {
         data.Thumbnail = ImageFile.FromFile(fdOpen.FileName);
         UpdateView();
     }
 }
示例#2
0
        public void TestGPSDate()
        {
            var expectedResult = new DateTime(2017, 09, 11);

            var image        = ImageFile.FromFile("UnitTestImage.jpg");
            var actualResult = image.Properties[ExifTag.GPSDateStamp].Value;

            Assert.AreEqual(expectedResult, actualResult);
        }
示例#3
0
        private void ReadFile(string filename)
        {
            data = ImageFile.FromFile(filename);

            UpdateView();

            this.Text      = Path.GetFileName(filename) + " - Exif Test";
            lblStatus.Text = Path.GetFileName(filename);
        }