本文整理了Java中org.apache.poi.xssf.usermodel.XSSFColor.getARGB()
方法的一些代码示例,展示了XSSFColor.getARGB()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFColor.getARGB()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFColor
类名称:XSSFColor
方法名:getARGB
[英]Standard Alpha Red Green Blue ctColor value (ARGB).
[中]标准阿尔法红-绿-蓝ctColor值(ARGB)。
代码示例来源:origin: org.apache.poi/poi-ooxml
private boolean sameARGB(XSSFColor other) {
if (isRGB() == other.isRGB()) {
return !isRGB() || Arrays.equals(getARGB(), other.getARGB());
}
return false;
}
private boolean sameTheme(XSSFColor other) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
private boolean sameARGB(XSSFColor other) {
if (isRGB() == other.isRGB()) {
return !isRGB() || Arrays.equals(getARGB(), other.getARGB());
}
return false;
}
private boolean sameTheme(XSSFColor other) {
代码示例来源:origin: org.apache.poi/poi-examples
private void styleColor(Formatter out, String attr, XSSFColor color) {
if (color == null || color.isAuto()) {
return;
}
byte[] rgb = color.getRGB();
if (rgb == null) {
return;
}
// This is done twice -- rgba is new with CSS 3, and browser that don't
// support it will ignore the rgba specification and stick with the
// solid color, which is declared first
out.format(" %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
byte[] argb = color.getARGB();
if (argb == null) {
return;
}
out.format(" %s: rgba(0x%02x, 0x%02x, 0x%02x, 0x%02x);%n", attr,
argb[3], argb[0], argb[1], argb[2]);
}
}
内容来源于网络,如有侵权,请联系作者删除!