ComponentFactory.Krypton.Toolkit.ButtonValues.GetImageTransparentColor C# (CSharp) Method

GetImageTransparentColor() public method

Gets the content image transparent color.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image color is needed.
return Color
        public Color GetImageTransparentColor(PaletteState state)
        {
            return ImageTransparentColor;
        }

Usage Example

Esempio n. 1
0
 /// <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));
     }
 }