Gets/sets a value which specifies the alpha threshold.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Property PaletteAlphaThreshold As Byte
public byte PaletteAlphaThreshold { get; set; }
When building a palette during color reduction for an image which should be saved to GIF, you need to have 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.
If the PaletteAlphaThresholdUsed property is false, alpha threshold is not used, and therefore the palette may contain more than one transparent or semitransparent entry. Also, this value is disregarded if the BuildAdaptivePaletteWithAlpha property is set to false (i.e. alpha channel is ignored during color reduction).