private void ExecuteImplode(XmlElement element, MagickImage image) { double factor_ = Variables.GetValue<double>(element, "factor"); image.Implode(factor_); }
private void ExecuteImplode(XmlElement element, MagickImage image) { double amount_ = Variables.GetValue<double>(element, "amount"); PixelInterpolateMethod method_ = Variables.GetValue<PixelInterpolateMethod>(element, "method"); image.Implode(amount_, method_); }
public void Test_Implode() { using (MagickImage image = new MagickImage(Files.MagickNETIconPNG)) { ColorAssert.AreEqual(new MagickColor("#00000000"), image, 69, 45); image.Implode(0.5, PixelInterpolateMethod.Blend); ColorAssert.AreEqual(new MagickColor("#a8dff8"), image, 69, 45); image.Implode(-0.5, PixelInterpolateMethod.Background); ColorAssert.AreEqual(new MagickColor("#00000000"), image, 69, 45); } }