Render() public method

Renders the current instance to an XMP System.String.
public Render ( ) : string
return string
示例#1
0
		/// <summary>
		/// Saves all the metadata that fits in XMP to a file.
		/// </summary>
		/// <example>SaveXmplFile("c:\dir\metadata.xmp")</example>
		public void SaveXmpFile(string path)
		{
			var tag = new XmpTag();
			SaveInImageTag(tag);
			File.WriteAllText(path, tag.Render(), Encoding.UTF8);
		}
示例#2
0
        private void TestRender(XmpTag tag, XmpValidator validator)
        {
            string xmp = tag.Render ();

            var parsed_tag = new XmpTag (xmp, null);
            validator (parsed_tag);
        }