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

GetContentImageEffect() public method

Gets the effect applied to drawing of the image.
public GetContentImageEffect ( PaletteState state ) : PaletteImageEffect
state PaletteState Palette value should be applicable to this state.
return PaletteImageEffect
        public override PaletteImageEffect GetContentImageEffect(PaletteState state)
        {
            if (_apply)
            {
                PaletteImageEffect ret = _primary.GetContentImageEffect(_override ? _state : state);

                if (ret == PaletteImageEffect.Inherit)
                    ret = _backup.GetContentImageEffect(state);

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