Type7ShadingContext.java (pdfbox-2.0.23-src) | : | Type7ShadingContext.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 tensor-product patch meshes (type 7) shading. This was | * AWT PaintContext for tensor-product patch meshes (type 7) shading. This was | |||
* done as part of GSoC2014, Tilman Hausherr is the mentor. | * done as 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 | |||
*/ | */ | |||
Type7ShadingContext(PDShadingType7 shading, ColorModel colorModel, AffineTra nsform xform, | Type7ShadingContext(PDShadingType7 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, 16); | super(shading, colorModel, xform, matrix, deviceBounds, 16); | |||
} | } | |||
@Override | ||||
protected Patch generatePatch(Point2D[] points, float[][] color) | ||||
{ | ||||
return new TensorPatch(points, color); | ||||
} | ||||
} | } | |||
End of changes. 2 change blocks. | ||||
7 lines changed or deleted | 0 lines changed or added |