iTextSharp.text.BaseColor.BaseColor C# (CSharp) Метод

BaseColor() публичный Метод

Constructor for Color object
public BaseColor ( float red, float green, float blue, float alpha ) : System
red float The red component value for the new Color structure. Valid values are 0 through 1.
green float The green component value for the new Color structure. Valid values are 0 through 1.
blue float The blue component value for the new Color structure. Valid values are 0 through 1.
alpha float The transparency component value for the new Color structure. Valid values are 0 through 1.
Результат System
        public BaseColor(float red, float green, float blue, float alpha)
        {
            color = System.Drawing.Color.FromArgb((int)(alpha * 255 + .5), (int)(red * 255 + .5), (int)(green * 255 + .5), (int)(blue * 255 + .5));
        }

Same methods

BaseColor::BaseColor ( System color ) : System
BaseColor::BaseColor ( float red, float green, float blue ) : System
BaseColor::BaseColor ( int argb ) : System
BaseColor::BaseColor ( int red, int green, int blue ) : System
BaseColor::BaseColor ( int red, int green, int blue, int alpha ) : System