public static void RemoveImageArtifacts(this IMorphologySettings self, IMagickImage <QuantumType> image) { if (self.ConvolveBias != null) { image.RemoveArtifact("convolve:bias"); } if (self.ConvolveScale != null) { image.RemoveArtifact("convolve:scale"); } }
public static void SetImageArtifacts(this IMorphologySettings self, IMagickImage <QuantumType> image) { if (self.ConvolveBias != null) { image.SetArtifact("convolve:bias", self.ConvolveBias.ToString()); } if (self.ConvolveScale != null) { image.SetArtifact("convolve:scale", self.ConvolveScale.ToString()); } }