pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1579148 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading: GouraudShadingContext.java Type4ShadingContext.java Type5ShadingContext.java
Date Wed, 19 Mar 2014 06:32:35 GMT
Author: tilman
Date: Wed Mar 19 06:32:35 2014
New Revision: 1579148

URL: http://svn.apache.org/r1579148
Log:
PDFBOX-1991: removed code that came from RadialShadingContext and is no longer used there

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/GouraudShadingContext.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type4ShadingContext.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/GouraudShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/GouraudShadingContext.java?rev=1579148&r1=1579147&r2=1579148&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/GouraudShadingContext.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/GouraudShadingContext.java
Wed Mar 19 06:32:35 2014
@@ -132,9 +132,8 @@ abstract class GouraudShadingContext imp
      * @param vertexList list of vertices
      * @param xform transformation for user to device space
      * @param ctm current transformation matrix
-     * @param pageHeight height of the current page
      */
-    protected void transformVertices(ArrayList<Vertex> vertexList, Matrix ctm, AffineTransform
xform, int pageHeight)
+    protected void transformVertices(ArrayList<Vertex> vertexList, Matrix ctm, AffineTransform
xform)
     {
         for (Vertex v : vertexList)
         {
@@ -148,13 +147,6 @@ abstract class GouraudShadingContext imp
                 // transform from user to device space
                 xform.transform(v.point, v.point);
             }
-            else
-            {
-                // the shading is used as pattern colorspace in combination
-                // with a fill-, stroke- or showText-operator
-                // move the 0,0-reference including the y-translation from user to device
space
-                v.point = new Point.Double(v.point.getX(), pageHeight + xform.getTranslateY()
- v.point.getY());
-            }
 
             LOG.debug(v);
         }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type4ShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type4ShadingContext.java?rev=1579148&r1=1579147&r2=1579148&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type4ShadingContext.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type4ShadingContext.java
Wed Mar 19 06:32:35 2014
@@ -176,7 +176,7 @@ class Type4ShadingContext extends Gourau
             }
         }
         mciis.close();
-        transformVertices(vertexList, ctm, xform, pageHeight);
+        transformVertices(vertexList, ctm, xform);
         createTriangleList(vertexList);
     }
 

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java?rev=1579148&r1=1579147&r2=1579148&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type5ShadingContext.java
Wed Mar 19 06:32:35 2014
@@ -116,7 +116,7 @@ class Type5ShadingContext extends Gourau
                 {
                     vertexList.add(readVertex(mciis, (byte) 0, maxSrcCoord, maxSrcColor,
rangeX, rangeY, colRangeTab));
                 }
-                transformVertices(vertexList, ctm, xform, pageHeight);
+                transformVertices(vertexList, ctm, xform);
 
                 // create the triangles from two rows
                 if (!prevVertexRow.isEmpty())



Mime
View raw message