private Color SetNewColor(Color color, Color drawingColor) { var b = drawingColor.B; var g = drawingColor.G; var r = drawingColor.R; Color newColor = Color.FromArgb(r, g, b); var newColorHSV = PixelOperations.ColorToHSV(newColor); newColorHSV.value = color.GetBrightness(); newColor = PixelOperations.ColorFromHSV(newColorHSV.hue, newColorHSV.saturation, newColorHSV.value); return(newColor); }