Replaces a color within the current image.
Method Declaration |
Copy Code |
---|---|
public ImageFactory ReplaceColor(Color target, Color replacement, int fuzziness = 0) |
target | The target System.Drawing.Color. |
replacement | The replacement System.Drawing.Color. |
fuzziness | A value between 0 and 128 with which to alter the target detection accuracy. |
Devesprit.ImageProcessor
Example |
Copy Code |
---|---|
new ImageFactory().Load(@"My-Image-Path") .ReplaceColor(Color.FromArgb(1, 213,202, 23), Color.FromArgb(1, 247, 107, 9), 110); |
Original
Result