Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

ColorManagementProvider.PaletteAlphaThreshold Property

Gets/sets a value which specifies the alpha threshold.

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

Syntax

Visual Basic
Public Property PaletteAlphaThreshold As Byte
C#
public byte PaletteAlphaThreshold { get; set; }

Property Value

Threshold value.

Remarks

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.

Note

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).

See Also

Reference