PaletteSystemDefault8BppPalette(Color32, Byte) Method
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.1.0
public static Palette SystemDefault8BppPalette(
Color32 backColor = default,
byte alphaThreshold = 128
)
Public Shared Function SystemDefault8BppPalette (
Optional backColor As Color32 = Nothing,
Optional alphaThreshold As Byte = 128
) As Palette
public:
static Palette^ SystemDefault8BppPalette(
Color32 backColor = Color32(),
unsigned char alphaThreshold = 128
)
static member SystemDefault8BppPalette :
?backColor : Color32 *
?alphaThreshold : byte
(* Defaults:
let _backColor = defaultArg backColor new Color32()
let _alphaThreshold = defaultArg alphaThreshold 128
*)
-> Palette
- backColor Color32 (Optional)
- Specifies the background color for lookup operations (GetNearestColor, GetNearestColorIndex).
When a lookup is performed with a color, whose Color32.A field is equal to or greater than alphaThreshold, and there is no exact match among the palette entries,
then the color to be found will be blended with this color before performing the lookup. The Color32.A field of the background color is ignored. This parameter is optional.
Default value: The default value of the Color32 type, which has the same RGB values as Black. - alphaThreshold Byte (Optional)
- Specifies a threshold value for the Color32.A field, under which lookup operations will return the first transparent color (GetNearestColor)
or the index of the first transparent color (GetNearestColorIndex). This parameter is optional.
Default value: 128.
PaletteA
Palette instance that uses the system default 8-bit palette.