"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/Type6ShadingContext.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.

Type6ShadingContext.java  (pdfbox-2.0.23-src):Type6ShadingContext.java  (pdfbox-2.0.24-src)
skipping to change at line 20 skipping to change at line 20
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.pdfbox.pdmodel.graphics.shading; package org.apache.pdfbox.pdmodel.graphics.shading;
import java.awt.Rectangle; import java.awt.Rectangle;
import java.awt.geom.AffineTransform; import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.image.ColorModel; import java.awt.image.ColorModel;
import java.io.IOException; import java.io.IOException;
import org.apache.pdfbox.util.Matrix; import org.apache.pdfbox.util.Matrix;
/** /**
* AWT PaintContext for coons patch meshes (type 6) shading. This was done as * AWT PaintContext for coons patch meshes (type 6) shading. This was done as
* part of GSoC2014, Tilman Hausherr is the mentor. * part of GSoC2014, Tilman Hausherr is the mentor.
* *
* @author Shaola Ren * @author Shaola Ren
*/ */
skipping to change at line 48 skipping to change at line 47
* @param xform transformation for user to device space * @param xform transformation for user to device space
* @param matrix the pattern matrix concatenated with that of the parent con tent stream * @param matrix the pattern matrix concatenated with that of the parent con tent stream
* @param deviceBounds device bounds * @param deviceBounds device bounds
* @throws IOException if something went wrong * @throws IOException if something went wrong
*/ */
Type6ShadingContext(PDShadingType6 shading, ColorModel colorModel, AffineTra nsform xform, Type6ShadingContext(PDShadingType6 shading, ColorModel colorModel, AffineTra nsform xform,
Matrix matrix, Rectangle deviceBounds) throws IOE xception Matrix matrix, Rectangle deviceBounds) throws IOE xception
{ {
super(shading, colorModel, xform, matrix, deviceBounds, 12); super(shading, colorModel, xform, matrix, deviceBounds, 12);
} }
@Override
protected Patch generatePatch(Point2D[] points, float[][] color)
{
return new CoonsPatch(points, color);
}
} }
 End of changes. 2 change blocks. 
7 lines changed or deleted 0 lines changed or added

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