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

GetContentImageColorMap() public method

Gets the image color to remap into another color.
public GetContentImageColorMap ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetContentImageColorMap(PaletteState state)
        {
            if (_apply)
            {
                Color ret = _primary.GetContentImageColorMap(_override ? _state : state);

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

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