Red, which represents the red channel of the color.The characteristics of the color can be obtained from the following float properties, that range from 0 to 1: Once created, a Color object is immutable. In addition to the methods listed above, the Color class also has Parse and TryParse methods that create Color objects from string arguments. Color.FromArgb from a string-based hexadecimal value in the form "#AARRGGBB" or "#RRGGBB" or "#ARGB" or "RGB", where each letter corresponds to a hexadecimal digit for the alpha, red, green, and blue channels.Color.FromUint from a uint value calculated as (B + 256 * (G + 256 * (R + 256 * A))).Color.FromInt from an int value calculated as (B + 256 * (G + 256 * (R + 256 * A))). Color.FromHsv from int HSV values that range from 0 to 255.Color.FromHsv from float HSV values that range from 0 to 1.Color.FromHsla from double HSLA values.Color.FromRgba from a string-based hexadecimal value in the form "#RRGGBBAA" or "#RRGGBB" or "#RGBA" or "#RGB", where each letter corresponds to a hexadecimal digit for the alpha, red, green, and blue channels.Color.FromRgba from byte RGBA values that range from 0 to 255.Color.FromRgba from double RGBA values that range from 0 to 1.Color.FromRgba from float RGBA values that range from 0 to 1.Color.FromRgb from byte RGB values that range from 0 to 255.Color.FromRgb from double RGB values that range from 0 to 1.Color.FromRgb from float RGB values that range from 0 to 1.You can also use the following static methods to create Color objects: The default Color constructor creates a black Color object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |