/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }