这个数字符号称为什么? [英] What's this numeric notation called?

查看:185
本文介绍了这个数字符号称为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  add(新CustomLabelField 
(请输入您的凭据:,Color.WHITE,0x999966,0));

这是什么0x999966?



I想要把这个颜色放在那里,那我该如何转换它?我只需要一个在线工具,可以将它转换为我,但我甚至不知道它叫什么! :D



link for more info

谢谢!

编辑:OK,所以这被称为十六进制数字,但我仍然不知道如何将类似#716eb3的内容转换为CustomLabelField构造函数接受的符号。任何帮助?

0x999966 表示一种颜色,那么它通常被编码,使得每两个十六进制数字编码一种颜色(作为RGB),所以它是0xRRGGBB。


add(new CustomLabelField
("Please enter your credentials:", Color.WHITE, 0x999966, 0));

What is that 0x999966?

I want to place this color there so how can I convert it? I just need an online tool that will convert it for me but I don't even know what it's called! :D

link for more info

Thanks!

Edit: OK, so this is called a hexadecimal number, but I still don't know how to convert something like "#716eb3" to the notation accepted by the CustomLabelField constructor. Any help?

解决方案

Hexadecimal, as in, base 16. If 0x999966 is indicating a color, then it's usually encoded such that each two hex digits encode a color (as RGB), so it's 0xRRGGBB.

这篇关于这个数字符号称为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆