57 var (
r,
g, b) = constant
switch
59 ColorConstant.Black => (0, 0, 0),
61 ColorConstant.Red => (255, 0, 0),
63 ColorConstant.Blue => (0, 0, 255),
65 ColorConstant.Gray => (128, 128, 128),
67 ColorConstant.Cyan => (0, 255, 255),
69 ColorConstant.Yellow => (255, 255, 0),
71 ColorConstant.Coral => (255, 127, 80),
73 ColorConstant.SpringGreen => (0, 255, 127),
75 ColorConstant.DarkOliveGreen => (85, 107, 47),
77 ColorConstant.CadetBlue => (95, 158, 160),
79 ColorConstant.Orange => (255, 165, 0),
81 ColorConstant.ForestGreen => (34, 139, 34),
83 ColorConstant.Navy => (0, 0, 128),
85 ColorConstant.DarkSlateBlue => (72, 61, 139),
87 ColorConstant.IndianRed => (205, 92, 92),
89 ColorConstant.LightSteelBlue => (176, 196, 222),
91 ColorConstant.Khaki => (240, 230, 140),
93 ColorConstant.Firebrick => (178, 34, 34),
98 ColorCode = CalculateColorCode((
byte)
r, (
byte)
g, (
byte) b, numBitsPerPixel);