/// <summary> /// Sets the RGB components of the RGBAColor.<br /> /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. /// </summary> /// <param name="Color">The RGB color to be set.</param> /// <returns></returns> public bool SetColor(RGBColor Color) { SetColor(Color.Red, Color.Green, Color.Blue); return(true); }
/// <summary> /// Initializes a new instance of the <see cref="RGBAColor"/> class. /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. /// </summary> /// <param name="RGBColor">RGBColor object.</param> public RGBAColor(RGBColor RGBColor) { SetColor(RGBColor); }
/// <summary> /// Initializes a new instance of the <see cref="RGBAColorNamed"/> class. /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. /// </summary> /// <param name="Name">The name of the color.</param> /// <param name="RGBColor">RGBColor object.</param> public RGBAColorNamed(string Name, RGBColor RGBColor) { SetColor(RGBColor); this.Name = Name; }