How to Use the Recolor Tool in Paint.NET

The Recolor tool in Paint.NET is a specialized brush designed to selectively replace a target color with a new color while preserving the original shading, textures, and luminosity of the image. Instead of applying a flat coat of paint like the standard Paintbrush or Flood Fill tools, the Recolor tool dynamically adjusts the hue and saturation of specific pixels, allowing you to alter colors naturally without destroying fine details or smooth gradients.

How the Recolor Tool Works

The Recolor tool operates by comparing pixels beneath the brush cursor against the chosen replacement criteria using your active palette colors:

  • Primary and Secondary Colors: By default, the tool looks for pixels matching your Secondary color and swaps them with your Primary color.
  • Mouse Button Controls: Using the Left Mouse Button paints the Primary color over areas matching the Secondary color. Clicking and dragging with the Right Mouse Button reverses this behavior, painting the Secondary color over areas matching the Primary color.

Preserving Texture and Shading

A standard brush tool overwrites every pixel with an opaque, solid color, erasing underlying highlights and shadows. The Recolor tool instead calculates the brightness and alpha transparency of the target pixel and applies those exact values to the replacement color. This ensures that wrinkles on fabric, reflections on metal, or gradients across skin tones remain intact after the color swap.

Key Settings and Adjustments

To control how aggressively the Recolor tool affects neighboring pixels, you can fine-tune its settings in the top toolbar:

  • Tolerance: This is the most critical setting. A low tolerance percentage restricts the tool to replacing only exact or near-exact matches of the target color. A higher tolerance expands the range to include similar shades, shadows, and highlights. If the tool is bleeding into areas you do not want to change, lower the tolerance; if it leaves speckles behind, increase it.
  • Brush Size: Adjusts the diameter of the replacement area, allowing you to cover broad backgrounds quickly or work on intricate, localized details.
  • Sampling Modes: Paint.NET allows you to choose how colors are sampled, enabling either continuous color detection as you drag the cursor or locking onto the first pixel clicked.

Common Use Cases

The Recolor tool is ideal for tasks that require targeted color adjustments without complex layer masking. Common applications include changing eye or hair color in portraits, altering the color of clothing or vehicles, modifying specific elements in graphic design icons, and correcting chromatic fringing along high-contrast edges.