List of usage examples for org.apache.pdfbox.pdmodel.graphics.color PDGamma setG
public void setG(float g)
From source file:com.infoimage.infotrac.pdfbox.PDFTextAnnotator.java
License:Apache License
public PDGamma getDefaultColor() { if (this.defaultColor != null) { return this.defaultColor; } else { // #fbe85a PDGamma c = new PDGamma(); c.setR((float) 0.9843); c.setG((float) 0.9098); c.setB((float) 0.3879); return c; }//from w w w. j a v a 2 s .c o m }
From source file:de.berber.kindle.annotator.lib.Annotation.java
License:Apache License
/** * Converts the color string into a PDGamma object. * // w ww.j a v a 2 s . c o m * @return */ protected final PDGamma getColor() { assert color.length() == 7 && color.startsWith("#"); final PDGamma color = new PDGamma(); color.setR(Integer.parseInt(this.color.substring(1, 3), 16) / 255f); color.setG(Integer.parseInt(this.color.substring(3, 5), 16) / 255f); color.setB(Integer.parseInt(this.color.substring(5, 7), 16) / 255f); return color; }
From source file:vortext.TextHighlight.java
License:Apache License
public PDGamma getDefaultColor() { if (defaultColor != null) { return defaultColor; } else { // #fbe85a final PDGamma c = new PDGamma(); c.setR((float) 0.9843); c.setG((float) 0.9098); c.setB((float) 0.3879); return c; }/*from w w w. j a v a2 s .co m*/ }