devguy Posted April 11, 2011 Share Posted April 11, 2011 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(); } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.