这是什么颜色代码?
我正在查看将文本放入 Excel 标题中的代码片段:
headerText.Append(@"&""Calibri""&20&K04-024HEADER-TEXT");
&""Calibri""
修改字体,&20
修改大小,而&K04-024
修改颜色(为海军蓝)。
问题是,这是什么颜色代码(K04-024
)?我以前见过各种类型,但没有见过这样的。我试过搜索谷歌,但找不到任何相关信息。
编辑:
这是使用 Spreadsheet Gear 将文本放入 Excel 标题的 C#。事实证明:&K01+047
是中灰色。这些数字是通过检查 XML Excel 文档并查看 Excel 内部使用的颜色来计算出来的。
编辑: 对于 RGB 比例:
K04-024
转换为 R:045 G:107 B:181
K01+047
转换为 R: 120 G:120 B:120
I'm looking at a code snippet which places text in an excel header:
headerText.Append(@"&""Calibri""&20&K04-024HEADER-TEXT");
&""Calibri""
modifies the font, &20
modifies the size, and &K04-024
modifies the color (to navyish).
The question is, what kind of color code is this (K04-024
)? I've seen various types before but nothing like this. I've tried scouring google and can't find anything about it.
EDIT:
This is C# using Spreadsheet Gear to drop text into an Excel header. It turns out that: &K01+047
is a medium grey color. These numbers were figured out by examining an XML excel document and seeing what excel uses internally as colors.
EDIT:
For the RGB Scale:
K04-024
translates to R:045 G:107 B:181
K01+047
translates to R:120 G:120 B:120
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它看起来像是带有破折号的 RGB,表示空颜色,因为0x040024
/R4 G0 B36
给出了海军蓝颜色。编辑响应到您的编辑:
看起来它们是调色板中颜色的组合。有关颜色和索引的列表,请参阅此处。
It looks like it's RGB with dash meaning an empty color, as0x040024
/R4 G0 B36
gives a navy color.Edit in response to your edit:
It looks like they're combined colors from a palette. See here for the list of colors and indices.