本文整理了Java中org.apache.poi.xssf.usermodel.XSSFColor.getRGBOrARGB()
方法的一些代码示例,展示了XSSFColor.getRGBOrARGB()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFColor.getRGBOrARGB()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFColor
类名称:XSSFColor
方法名:getRGBOrARGB
暂无
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Standard Alpha Red Green Blue ctColor value (ARGB).
*/
@Override
public byte[] getARGB() {
byte[] rgb = getRGBOrARGB();
if(rgb == null) {
return null;
}
if(rgb.length == 3) {
// Pad with the default Alpha
byte[] tmp = new byte[4];
tmp[0] = -1;
System.arraycopy(rgb, 0, tmp, 1, 3);
return tmp;
} else {
return rgb;
}
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Standard Red Green Blue ctColor value (RGB).
* If there was an A (Alpha) value, it will be stripped.
*/
@Override
public byte[] getRGB() {
byte[] rgb = getRGBOrARGB();
if(rgb == null) {
return null;
}
if(rgb.length == 4) {
// Need to trim off the alpha
byte[] tmp = new byte[3];
System.arraycopy(rgb, 1, tmp, 0, 3);
return tmp;
} else {
return rgb;
}
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Standard Red Green Blue ctColor value (RGB).
* If there was an A (Alpha) value, it will be stripped.
*/
public byte[] getRgb() {
byte[] rgb = getRGBOrARGB();
if(rgb == null) return null;
if(rgb.length == 4) {
// Need to trim off the alpha
byte[] tmp = new byte[3];
System.arraycopy(rgb, 1, tmp, 0, 3);
return tmp;
} else {
return rgb;
}
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Standard Alpha Red Green Blue ctColor value (ARGB).
*/
public byte[] getARgb() {
byte[] rgb = getRGBOrARGB();
if(rgb == null) return null;
if(rgb.length == 3) {
// Pad with the default Alpha
byte[] tmp = new byte[4];
tmp[0] = -1;
System.arraycopy(rgb, 0, tmp, 1, 3);
return tmp;
} else {
return rgb;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Standard Red Green Blue ctColor value (RGB).
* If there was an A (Alpha) value, it will be stripped.
*/
@Override
public byte[] getRGB() {
byte[] rgb = getRGBOrARGB();
if(rgb == null) {
return null;
}
if(rgb.length == 4) {
// Need to trim off the alpha
byte[] tmp = new byte[3];
System.arraycopy(rgb, 1, tmp, 0, 3);
return tmp;
} else {
return rgb;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Standard Alpha Red Green Blue ctColor value (ARGB).
*/
@Override
public byte[] getARGB() {
byte[] rgb = getRGBOrARGB();
if(rgb == null) {
return null;
}
if(rgb.length == 3) {
// Pad with the default Alpha
byte[] tmp = new byte[4];
tmp[0] = -1;
System.arraycopy(rgb, 0, tmp, 1, 3);
return tmp;
} else {
return rgb;
}
}
内容来源于网络,如有侵权,请联系作者删除!