7.36. Порог альфа-канала

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. Активация команды

  • You can access this command from the image menubar through LayerTransparencyThreshold Alpha.

7.36.2. Описание окна изображения

Рисунок 15.101. The only one option of the «Threshold Alpha» dialog

The only one option of the «Threshold Alpha» dialog

Порог

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.

[Примечание] Примечание

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

Рисунок 15.102. Threshold Alpha example

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