PaletteGrayscale256(WorkingColorSpace, Color32) Method
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.1.0
public static Palette Grayscale256(
WorkingColorSpace workingColorSpace,
Color32 backColor = default
)
Public Shared Function Grayscale256 (
workingColorSpace As WorkingColorSpace,
Optional backColor As Color32 = Nothing
) As Palette
public:
static Palette^ Grayscale256(
WorkingColorSpace workingColorSpace,
Color32 backColor = Color32()
)
static member Grayscale256 :
workingColorSpace : WorkingColorSpace *
?backColor : Color32
(* Defaults:
let _backColor = defaultArg backColor new Color32()
*)
-> Palette
- workingColorSpace WorkingColorSpace
- Specifies the desired color space to be used by the GetNearestColor
and GetNearestColorIndex methods for blending and measuring color distance.
- backColor Color32 (Optional)
- Specifies the background color for lookup operations (GetNearestColor, GetNearestColorIndex).
When a lookup is performed with a color with transparency, 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.
PaletteA
Palette instance that uses a 8-bit grayscale palette of 256 shades.