How to Cut Out Complex Hair in Paint.NET
Extracting intricate, fine hair strands from a photo background can be challenging in Paint.NET without advanced tools like Photoshop's Refine Edge. However, you can achieve professional results by using the high-contrast alpha mask technique. This method involves converting your image into a high-contrast black-and-white silhouette to capture semi-transparent flyaways, which is then used as a mask to cleanly separate the hair from its original background.
Step 1: Duplicate and Prepare the Image
- Open your image in Paint.NET.
- Go to the Layers window and click Duplicate Layer. Name this duplicate layer "Mask" and keep the original layer beneath it as "Original."
- Uncheck the visibility of the "Original" layer for now to focus entirely on generating your mask.
Step 2: Create a High-Contrast Silhouette
Hair strands are too thin for standard lasso or magic wand selections, so you must use luminance values to separate the hair from the background.
- Select the "Mask" layer and navigate to Adjustments >
Black and White (or press
Ctrl + Shift + G). - Go to Adjustments > Curves (or Levels).
- Switch the curve mode to Luminosity or adjust the RGB channels to maximize the contrast between the hair strands and the background.
- Your goal is to make the subject solid white (opaque) and the background solid black (transparent), or vice-versa depending on the masking tool you use. For a standard cutout, aim for pure white hair/body against a pure black background.
Step 3: Clean Up the Interior and Exterior
Curves and levels will capture the fine strands, but they may leave noisy artifacts across the rest of the image.
- Select the Paintbrush tool.
- Set the primary color to solid white and paint over the interior body, face, and thick parts of the hair so no background can show through the subject.
- Switch to solid black and paint over any remaining elements in the background to ensure it is completely dark.
- Leave the delicate perimeter—where individual strands overlap the background—untouched.
Step 4: Apply the Alpha Mask
To apply this black-and-white cutout to your original image, use the popular and free Alpha Mask plugin (from the BoltBait or Illunar packs).
- Select all (
Ctrl + A) on your "Mask" layer and copy it (Ctrl + C). - Hide or delete the "Mask" layer, and make the "Original" layer visible and active.
- Open the plugin via Effects > Alpha Mask.
- Check the box to use the clipboard as the mask source. If the hair disappears instead of the background, check the Invert Mask option.
- Click OK. The background will vanish, leaving the individual hair strands intact without losing their fine, translucent edges.
Step 5: Defringe and Clean Up Halos
Often, fine strands will retain color fringing from the old background. To fix this:
- Duplicate the cutout layer.
- On the bottom cutout layer, apply a slight Gaussian Blur (1–2 pixels) to fill in gaps.
- Use the Color Tint or Curves adjustment on the edges to darken or match the fringe color to the subject's natural hair color.
- Merge the layers down to finish the cutout.