"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/TensorPatch.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

TensorPatch.java  (pdfbox-2.0.23-src):TensorPatch.java  (pdfbox-2.0.24-src)
skipping to change at line 37 skipping to change at line 37
class TensorPatch extends Patch class TensorPatch extends Patch
{ {
/** /**
* Constructor of a patch for type 7 shading. * Constructor of a patch for type 7 shading.
* *
* @param tcp 16 control points * @param tcp 16 control points
* @param color 4 corner colors * @param color 4 corner colors
*/ */
protected TensorPatch(Point2D[] tcp, float[][] color) protected TensorPatch(Point2D[] tcp, float[][] color)
{ {
super(tcp, color); super(color);
controlPoints = reshapeControlPoints(tcp); controlPoints = reshapeControlPoints(tcp);
level = calcLevel(); level = calcLevel();
listOfTriangles = getTriangles(); listOfTriangles = getTriangles();
} }
/* /*
order the 16 1d points to a square matrix which is as the one described order the 16 1d points to a square matrix which is as the one described
in p.199 of PDF3200_2008.pdf rotated 90 degrees clockwise in p.199 of PDF3200_2008.pdf rotated 90 degrees clockwise
*/ */
private Point2D[][] reshapeControlPoints(Point2D[] tcp) private Point2D[][] reshapeControlPoints(Point2D[] tcp)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)