Level.ColorInLow set property (it uses value.R for everything instead of value.G or value.B ):
public ColorBgra ColorInLow
{
get
{
return this.colorInLow;
}
set
{
if (value.R == 0xff)
{
value.R = 0xfe;
}
if (value.G == 0xff)
{
value.G = 0xfe;
}
if (value.B == 0xff)
{
value.B = 0xfe;
}
if (this.colorInHigh.R < (value.R + 1))
{
this.colorInHigh.R = (byte) (value.R + 1);
}
if (this.colorInHigh.G < (value.G + 1))
{
this.colorInHigh.G = (byte) (value.R + 1);
}
if (this.colorInHigh.B < (value.B + 1))
{
this.colorInHigh.B = (byte) (value.R + 1);
}
this.colorInLow = value;
this.UpdateLookupTable();
}
}