private static MagickImage ExecuteFlatten(MagickImageCollection collection) { return collection.Flatten(); }
public void Test_Flatten() { using (MagickImageCollection collection = new MagickImageCollection()) { ExceptionAssert.Throws<InvalidOperationException>(delegate () { collection.Flatten(); }); collection.Add(new MagickImage(MagickColors.Brown, 10, 10)); MagickImage center = new MagickImage(MagickColors.Fuchsia, 4, 4); center.Page = new MagickGeometry(3, 3, 4, 4); collection.Add(center); using (MagickImage image = collection.Flatten()) { ColorAssert.AreEqual(MagickColors.Brown, image, 0, 0); ColorAssert.AreEqual(MagickColors.Fuchsia, image, 5, 5); } } }
private static MagickImage ExecuteFlatten(MagickImageCollection collection) { return(collection.Flatten()); }