0
次のコードスニペットでは、.jpgイメージのUniqueImageIdを取得します。しかし.tiffファイルでは同じコードは機能しません。誰でもアイデアがありますか? THX.tiffイメージでImageUniqueIDを取得
Image myImage = new Bitmap(@"C:\path\to\picture.tiff");
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
PropertyItem pi = myImage.GetPropertyItem(42016); // EXIF-Code -> UniqueImageID
string uniqueImageId = encoding.GetString(pi.Value, 0, 32);