use of com.tom_roush.pdfbox.pdmodel.graphics.color.PDGamma in project PdfBox-Android by TomRoush.
the class PDFourColours method getColourByIndex.
/**
* Gets the colour by edge index.
*
* @param index edge index
* @return the colour
*/
private PDGamma getColourByIndex(int index) {
PDGamma retval = null;
COSBase item = this.array.getObject(index);
if (item instanceof COSArray) {
retval = new PDGamma((COSArray) item);
}
return retval;
}