/** * Sets the colour by edge index. * * @param index the edge index * @param colour the colour */ private void setColourByIndex(int index, PDGamma colour) { COSBase base; if (colour == null) { base = COSNull.NULL; } else { base = colour.getCOSArray(); } this.array.set(index, base); }
public static Color extractColor(PDAnnotation annot) { PDGamma colour = annot.getColour(); return new Color(colour.getR(), colour.getG(), colour.getB()); }