本文整理汇总了C#中MagickImage.GetXmpProfile方法的典型用法代码示例。如果您正苦于以下问题:C# MagickImage.GetXmpProfile方法的具体用法?C# MagickImage.GetXmpProfile怎么用?C# MagickImage.GetXmpProfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MagickImage
的用法示例。
在下文中一共展示了MagickImage.GetXmpProfile方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Test_FromIXPathNavigable
public void Test_FromIXPathNavigable()
{
using (MagickImage image = new MagickImage(Files.InvitationTif))
{
XmpProfile profile = image.GetXmpProfile();
Assert.IsNotNull(profile);
IXPathNavigable doc = profile.ToIXPathNavigable();
ExceptionAssert.Throws<ArgumentNullException>(delegate()
{
XmpProfile.FromIXPathNavigable(null);
});
XmpProfile newProfile = XmpProfile.FromIXPathNavigable(doc);
image.AddProfile(newProfile);
doc = profile.ToIXPathNavigable();
TestIXPathNavigable(doc);
profile = image.GetXmpProfile();
Assert.IsNotNull(profile);
doc = profile.ToIXPathNavigable();
TestIXPathNavigable(doc);
Assert.AreEqual(profile, newProfile);
}
}
示例2: Test_CreateReader
public void Test_CreateReader()
{
using (MagickImage image = new MagickImage(Files.InvitationTif))
{
XmpProfile profile = image.GetXmpProfile();
Assert.IsNotNull(profile);
using (XmlReader reader = profile.CreateReader())
{
XmlDocument doc = new XmlDocument();
doc.Load(reader);
TestIXPathNavigable(doc);
}
}
}
示例3: Test_ToXDocument
public void Test_ToXDocument()
{
using (MagickImage image = new MagickImage(Files.InvitationTif))
{
XmpProfile profile = image.GetXmpProfile();
Assert.IsNotNull(profile);
XDocument document = profile.ToXDocument();
TestXDocument(document);
}
}
示例4: Test_ToIXPathNavigable
public void Test_ToIXPathNavigable()
{
using (MagickImage image = new MagickImage(Files.InvitationTif))
{
XmpProfile profile = image.GetXmpProfile();
Assert.IsNotNull(profile);
IXPathNavigable doc = profile.ToIXPathNavigable();
TestIXPathNavigable(doc);
}
}