use of com.tom_roush.harmony.awt.AWTColor in project PdfBox-Android by TomRoush.
the class FDFAnnotationPolygon method getInteriorColor.
/**
* This will get interior color of the drawn area.
*
* @return object representing the color.
*/
public AWTColor getInteriorColor() {
AWTColor retval = null;
COSArray array = (COSArray) annot.getDictionaryObject(COSName.IC);
if (array != null) {
float[] rgb = array.toFloatArray();
if (rgb.length >= 3) {
retval = new AWTColor(rgb[0], rgb[1], rgb[2]);
}
}
return retval;
}
use of com.tom_roush.harmony.awt.AWTColor in project PdfBox-Android by TomRoush.
the class FDFAnnotationCircle method getInteriorColor.
/**
* This will retrieve the interior color of the drawn area.
*
* @return object representing the color.
*/
public AWTColor getInteriorColor() {
AWTColor retval = null;
COSArray array = (COSArray) annot.getDictionaryObject(COSName.IC);
if (array != null) {
float[] rgb = array.toFloatArray();
if (rgb.length >= 3) {
retval = new AWTColor(rgb[0], rgb[1], rgb[2]);
}
}
return retval;
}