类 RgbUtil


  • public final class RgbUtil
    extends Object
    This is the class for transformatting rgb values.
    作者:
    vorbote thills@vorbote.cn
    • 方法详细资料

      • ToHex

        public static String ToHex​(int red,
                                   int green,
                                   int blue)
        This util can transfer a specified color to hex String.
        参数:
        red - The red color, this value should be no less than 0, and no greater than 255.
        green - The red color, this value should be no less than 0, and no greater than 255.
        blue - The red color, this value should be no less than 0, and no greater than 255.
        返回:
        The hex string.