How would I get the copyright date from a bitmap?
private void toolStripMenuItemLoadImage_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Title = "Load Image";
if (ofd.ShowDialog() == DialogResult.OK)
{
firstLoaded = new Bitmap(ofd.FileName);
String details = //Grab the copyright date of the image here;
this.Invalidate();
}
}
isLoaded = true;
}
If you’re asking to get the system-provided details, then you should look into shell functions (shell32.dll). Check out this SO post.
Basically, it’s not saved in the bitmap itself, rather in the system. It contains like specified rating, user, details etc.