private void embedThumbnailToolStripButton_Click(object sender, EventArgs e) { if (fdOpen.ShowDialog() == DialogResult.OK) { data.Thumbnail = ImageFile.FromFile(fdOpen.FileName); UpdateView(); } }
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); }
private void ReadFile(string filename) { data = ImageFile.FromFile(filename); UpdateView(); this.Text = Path.GetFileName(filename) + " - Exif Test"; lblStatus.Text = Path.GetFileName(filename); }