Exemplo n.º 1
0
            public void ShouldRemoveSeedColors()
            {
                using (var image = new MagickImage())
                {
                    var settings = new KmeansSettings
                    {
                        SeedColors = "red;blue",
                    };

                    settings.SetImageArtifacts(image);
                    settings.RemoveImageArtifacts(image);

                    Assert.Empty(image.ArtifactNames);
                }
            }
Exemplo n.º 2
0
            public void ShouldRemoveSeedColors()
            {
                using (var image = new MagickImage())
                {
                    var settings = new KmeansSettings()
                    {
                        SeedColors = "red;blue",
                    };

                    settings.SetImageArtifacts(image);
                    settings.RemoveImageArtifacts(image);

                    Assert.IsNull(image.GetArtifact("kmeans:seed-colors"));
                }
            }