Mask Refine
Refines a mask with erode, dilate, feather, threshold, and morphological operations.
Mask Refine is the primary tool for cleaning up and adjusting masks. Erode shrinks the mask (positive values) or dilates it (negative values). Feather applies a Gaussian blur for soft edges. Threshold binarizes the mask.
The morphology section offers advanced operations: Open (removes small noise), Close (fills small holes), Gradient (extracts edges), Top Hat (bright detail), and Black Hat (dark detail).
Extend Transparent RGB
Section titled “Extend Transparent RGB”With an image connected, a Transparent RGB section offers Extend Transparent RGB, which fills the color underneath fully transparent pixels with nearby edge color instead of leaving it undefined. This matters for straight-alpha texture export, external mip generation, and any downstream tool that reads the RGB of a transparent pixel: without it, those tools pull black (or whatever happened to be there) into the edges of your artwork.
A Radius control sets how far the fill reaches. If an Erode or Morphology setting already needs more reach than that, the larger of the two is used. The option starts off, so existing projects are unchanged.
ArcBrush’s own Resize and Transform resample premultiplied and do not need this; it is for what happens after the image leaves ArcBrush.
Parameters
Section titled “Parameters”Pins
Mask
Binarize the mask before refinement
Binarization cutoff (pixels >= become white)
Positive: erode (shrink). Negative: dilate (expand)
Gaussian blur radius on mask edges
Invert the mask
How the connected color image is read as a mask
Morphology
Additional morphological op (Open/Close/Gradient/Top Hat/Black Hat)
Structuring element shape
Kernel radius in pixels
How many times to repeat the operation
Transparent RGB
Stores edge color beneath fully transparent pixels, for straight-alpha texture export, external mip generation, and downstream tools that read transparent RGB.
ArcBrush's own Resize and Transform already resample premultiplied and do not need this.
Minimum extension radius. Automatic alpha-expanding operations may extend further
Usage Tips
Section titled “Usage Tips”- A small erode (1–2px) removes fringe pixels at mask edges.
- Negative erode values dilate (expand) the mask, which is useful for extending selections.
- Use Open to clean up noisy masks without changing the overall shape.
- Close fills small holes in masks and works well for patching gaps in selections.
- Use Feather to soften hard mask edges into a smooth falloff.
- Turn on Extend Transparent RGB as the last step before exporting a straight-alpha game texture, so the engine’s mip chain does not bleed black into cut-out edges.