Search in sources :

Example 1 with PDGamma

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;
}
Also used : PDGamma(com.tom_roush.pdfbox.pdmodel.graphics.color.PDGamma) COSArray(com.tom_roush.pdfbox.cos.COSArray) COSBase(com.tom_roush.pdfbox.cos.COSBase)

Aggregations

COSArray (com.tom_roush.pdfbox.cos.COSArray)1 COSBase (com.tom_roush.pdfbox.cos.COSBase)1 PDGamma (com.tom_roush.pdfbox.pdmodel.graphics.color.PDGamma)1