public void Dump() { #if enable_debug XmpFile xmp = new XmpFile(); xmp.Store = this; xmp.Save(System.Console.OpenStandardOutput()); #endif }
public void SetXmp(XmpFile xmp) { using (MemoryStream stream = new MemoryStream()) { XmpSignature.WriteName(stream); xmp.Save(stream); Marker xmp_marker = new Marker(XmpSignature.Id, stream.ToArray()); Replace(XmpSignature, xmp_marker); } }