7.36. Threshold Alpha
| 7. The “Layer” Menu |

### 7.36. Threshold Alpha

The Threshold Alpha command converts semi-transparent areas of the active layer into completely transparent or completely opaque areas, based on a threshold you set, between 0 and 255. It only works on layers of RGB images which have an alpha channel. If the image is Grayscale or Indexed, or if the layer does not have an alpha channel, the menu entry is insensitive and grayed out. If the Keep transparency option is checked in the Layers dialog, the command displays an error message.

#### 7.36.1. Activating the Command

- You can access this command from the image menubar through Layer → Transparency → Threshold Alpha.

#### 7.36.2. Description of the Dialog Window

Figuur 15.101. The only one option of the “Threshold Alpha” dialog

Threshold

  You can set the transparency value to be used as a threshold by using the slider or by entering a value between 0 and 255 in the input box. All transparency values above this threshold will become opaque and all transparency values below or equal to this threshold will become completely transparent. The transition is abrupt.

  | Opmerking
  This command will never make completely transparent pixels (alpha value = 0) opaque.

  Figuur 15.102. Threshold Alpha example

  A transparency gradient 0-255.
  Threshold set to 50, 127, 210.

7.35. Semi-flatten |  | 7.37. Alpha to Selection