ComponentFactory.Krypton.Toolkit.PaletteContentInheritOverride.GetContentImageColorTo C# (CSharp) Method

GetContentImageColorTo() public method

Gets the color to use in place of the image map color.
public GetContentImageColorTo ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetContentImageColorTo(PaletteState state)
        {
            if (_apply)
            {
                Color ret = _primary.GetContentImageColorTo(_override ? _state : state);

                if (ret == Color.Empty)
                    ret = _backup.GetContentImageColorTo(state);

                return ret;
            }
            else
                return _backup.GetContentImageColorTo(state);
        }