本文整理汇总了C#中ImageMagick.MagickImage.Get8BimProfile方法的典型用法代码示例。如果您正苦于以下问题:C# MagickImage.Get8BimProfile方法的具体用法?C# MagickImage.Get8BimProfile怎么用?C# MagickImage.Get8BimProfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ImageMagick.MagickImage
的用法示例。
在下文中一共展示了MagickImage.Get8BimProfile方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Get8BimValue
private static EightBimValue Get8BimValue()
{
using (MagickImage image = new MagickImage(Files.FujiFilmFinePixS1ProJPG))
{
EightBimProfile profile = image.Get8BimProfile();
return profile.Values.First();
}
}
示例2: Test_Values
public void Test_Values()
{
using (MagickImage image = new MagickImage(Files.EightBimTIF))
{
EightBimProfile profile = image.Get8BimProfile();
TestProfileValues(profile);
using (MagickImage emptyImage = new MagickImage(Files.ImageMagickJPG))
{
Assert.IsNull(emptyImage.Get8BimProfile());
emptyImage.AddProfile(profile);
profile = emptyImage.Get8BimProfile();
TestProfileValues(profile);
}
}
}
示例3: Test_ClippingPaths
public void Test_ClippingPaths()
{
using (MagickImage image = new MagickImage(Files.EightBimTIF))
{
EightBimProfile profile = image.Get8BimProfile();
TestProfile(profile);
using (MagickImage emptyImage = new MagickImage(Files.EightBimTIF))
{
emptyImage.Strip();
Assert.IsNull(emptyImage.GetIptcProfile());
emptyImage.AddProfile(profile);
profile = emptyImage.Get8BimProfile();
TestProfile(profile);
}
}
}
示例4: Test_Ping
public void Test_Ping()
{
using (MagickImage image = new MagickImage())
{
image.Ping(Files.FujiFilmFinePixS1ProJPG);
ExceptionAssert.Throws<InvalidOperationException>(delegate ()
{
image.GetReadOnlyPixels();
});
ImageProfile profile = image.Get8BimProfile();
Assert.IsNotNull(profile);
}
}
示例5: Test_Ping
private static void Test_Ping(MagickImage image)
{
ExceptionAssert.Throws<InvalidOperationException>(delegate ()
{
image.GetPixels();
});
ImageProfile profile = image.Get8BimProfile();
Assert.IsNotNull(profile);
}