public static void RemoveImageArtifacts(this IKmeansSettings self, IMagickImage <QuantumType> image) { if (!string.IsNullOrEmpty(self.SeedColors)) { image.RemoveArtifact("kmeans:seed-colors"); } }
public static void SetImageArtifacts(IMagickImage <QuantumType> image, IKmeansSettings settings) { if (settings.SeedColors != null && settings.SeedColors.Length > 0) { image.SetArtifact("kmeans:seed-colors", settings.SeedColors); } }