102103104105106107108109110111112
// get background values if available COSArray bg = shadingType4.getBackground(); if (bg != null) { background = bg.toFloatArray(); } //TODO missing: BBox, AntiAlias (p. 305 in 1.7 spec) // p318: // reading in sequence from higher-order to lower-order bit positions
7576777879808182838485
triangleList = new ArrayList<ShadedTriangle>(); LOG.debug("Background: " + shading.getBackground()); COSArray bg = shading.getBackground(); if (bg != null) { background = bg.toFloatArray(); rgbBackground = convertToRGB(background); } } /**
158159160161162163164165166167168
// get background values if available COSArray bg = shading.getBackground(); if (bg != null) { background = bg.toFloatArray(); rgbBackground = convertToRGB(background); } longestDistance = getLongestDis(); colorTable = calcColorTable(); }
249250251252253254255256257258259
{ Color retval = null; COSArray array = (COSArray)annot.getDictionaryObject( "color" ); if( array != null ) { float[] rgb = array.toFloatArray(); if( rgb.length >=3 ) { retval = new Color( rgb[0], rgb[1], rgb[2] ); } }
155156157158159160161162163164165
* default user space. */ public float[] getLine() { COSArray l = (COSArray) getDictionary().getDictionaryObject( "L" ); return l.toFloatArray(); } /** * This will set the line ending style for the start point, * see the LE_ constants for the possible values.
302303304305306307308309310311312
public float[] getCoordSystemOrigin() { COSArray o = (COSArray)this.getDictionary().getDictionaryObject("O"); if (o != null) { return o.toFloatArray(); } return null; } /**
240241242243244245246247248249250
public float[] getQuadPoints() { COSArray quadPoints = (COSArray) getDictionary().getDictionaryObject( "QuadPoints" ); if (quadPoints != null) { return quadPoints.toFloatArray(); } else { return null; // Should never happen as this is a required item }
446447448449450451452453454455456
{ float retval = 0.f; COSArray array = (COSArray)this.getDictionary().getDictionaryObject( "CO" ); if( array != null ) { retval = array.toFloatArray()[0]; } return retval; }
483484485486487488489490491492493
{ float retval = 0.f; COSArray array = (COSArray)this.getDictionary().getDictionaryObject( "CO" ); if( array != null ) { retval = array.toFloatArray()[1]; } return retval; } }
101102103104105106107108109110111