ColorConverter.TransparentIndexThreshold Property

Gets or sets a transparency threshold.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public int TransparentIndexThreshold { get; set; }

Property Value

The threshold is range [0, 255]. The default value is 128.

Remarks

When building a palette during color reduction for an image which should be saved to GIF, you need to have the only one transparent color. However during color reduction you may get a number of colors with a different level of transparency. To avoid this, use this property. All alpha channel values which are greater or equal to this value will be changed to 255 (fully opaque), otherwise it will be 0.

See Also

Reference