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

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

Constructor for Color object
public Color ( 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 Color(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

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