public class CustomIndexedColorMap extends java.lang.Object implements IndexedColorMap
Modifier and Type | Method and Description |
---|---|
static CustomIndexedColorMap |
fromColors(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColors colors)
OOXML spec says if this exists it must have all indexes.
(OOXML 规范说如果存在,它必须具有所有索引。)
|
byte[] |
getRGB(int index) |
public byte[] getRGB(int index)
getRGB
in interface
IndexedColorMap
(接口 IndexedColorMap 中的 getRGB)
index
- color index to look up
(index - 要查找的颜色索引)
public static CustomIndexedColorMap fromColors(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColors colors)
From the OOXML Spec, Part 1, section 18.8.27:
This element contains a sequence of RGB color values that correspond to color indexes (zero-based). When using the default indexed color palette, the values are not written out, but instead are implied. When the color palette has been modified from default, then the entire color palette is written out.
(OOXML 规范说如果存在,它必须具有所有索引。来自 OOXML 规范,第 1 部分,第 18.8.27 节:此元素包含对应于颜色索引(从零开始)的 RGB 颜色值序列。使用默认索引调色板时,不会写出这些值,而是隐含的。当调色板从默认值修改后,整个调色板都被写出。)colors
- CTColors from styles.xml possibly defining a custom color indexing scheme
(颜色 - 来自 styles.xml 的 CTColors 可能定义自定义颜色索引方案)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.