Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Level-Colors command [1404]

$
0
0
I want to use the +level-colors (note the + sign) but it seems to be the -level-colors (note the - sign) method that is exposed in Magick.NET.

I want to color a transparent image like this example "convert cow.gif +level-colors red, cow_red.gif" on http://www.imagemagick.org/Usage/color_mods/#level-colors (also note that the second argument is empty)

Is this possible, or is the feature missing?
Comments: `+level-colors` is the inverse of `-level-colors`. And that is why `+level-colors` is available as `InverseLevelColors`. I now wonder if I should rename that method to `LevelColorsInverse` to make it more clear that this method is available. When the second argument is empty it will default to `MagickColors.White` on the command line and for the first argument it will default to `MagickColors.Black`. This means your command would be translated to this: ```C# using (MagickImage image = new MagickImage("cow.gif")) { image.InverseLevelColors(MagickColors.Red, MagickColors.White); image.Write("cow_red.gif"); } ```

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>