/// <summary>
/// Gets the image color that should be transparent.
/// </summary>
/// <param name="state">The state for which the image is needed.</param>
/// <returns>Color value.</returns>
public Color GetImageTransparentColor(PaletteState state)
{
if (KryptonCommand != null)
{
return(KryptonCommand.ImageTransparentColor);
}
else
{
return(_buttonValues.GetImageTransparentColor(state));
}
}