For more information, refer to Correcting Colors.
Selective Color Function - Before

Selective Color Function - After

View additional platform support for this Selective Color function.
Run the SelectiveColorCommand on an image and apply selective color to the image.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Color;public void SelectiveColorCommandExample(){// Load an imageRasterCodecs codecs = new RasterCodecs();codecs.ThrowExceptionsOnInvalidImages = true;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "cannon.jpg"));// Prepare the commandSelectiveColorCommand command = new SelectiveColorCommand();//Manipulate values.command.ColorsData[(int)SelectiveCommandColorTypes.Red].Cyan = -100; // Change the Red selected colorcommand.ColorsData[(int)SelectiveCommandColorTypes.Yellow].Cyan = 34; // Change the Yellow selected colorcommand.ColorsData[(int)SelectiveCommandColorTypes.Yellow].Magenta = 100;command.ColorsData[(int)SelectiveCommandColorTypes.Yellow].Yellow = 40;command.ColorsData[(int)SelectiveCommandColorTypes.Green].Black = 100; // Change the Green selected colorcommand.ColorsData[(int)SelectiveCommandColorTypes.Neutral].Cyan = -65; // Change the Neutral selected colorcommand.ColorsData[(int)SelectiveCommandColorTypes.Neutral].Magenta = -39;command.ColorsData[(int)SelectiveCommandColorTypes.Neutral].Yellow = 63;command.Run(image);codecs.Save(image, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24);}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images";}
Leadtools.ImageProcessing.Color Namespace
Leadtools.ImageProcessing.Effects.SharpenCommand
Leadtools.ImageProcessing.Effects.MosaicCommand
Leadtools.ImageProcessing.Effects.EmbossCommand
Leadtools.ImageProcessing.Core.MedianCommand
Leadtools.ImageProcessing.Effects.AddNoiseCommand
Leadtools.ImageProcessing.Effects.SpatialFilterCommand
Leadtools.ImageProcessing.Effects.BinaryFilterCommand
Leadtools.ImageProcessing.Core.MaximumCommand
Leadtools.ImageProcessing.Core.MinimumCommand
Leadtools.ImageProcessing.Effects.OilifyCommand