/* */
/* */ }
/* */
/* 1128 */ at.preConcatenate(renderContext.getTransform());
/* */
/* 1131 */ ROIShape roi = new ROIShape(at.createTransformedShape(rgn));
/* */
/* 1134 */ TiledImage ti = new TiledImage(rendering.getMinX(), rendering.getMinY(), rendering.getWidth(), rendering.getHeight(), rendering.getTileGridXOffset(), rendering.getTileGridYOffset(), rendering.getSampleModel(), rendering.getColorModel());
/* */
/* 1144 */ ti.set(rendering, roi);
/* */
/* 1147 */ pb = new ParameterBlock();
/* 1148 */ pb.add(ti.getWidth());
/* 1149 */ pb.add(ti.getHeight());
/* 1150 */ Byte[] bandValues = new Byte[ti.getSampleModel().getNumBands()];
/* */
/* 1152 */ for (int b = 0; b < bandValues.length; b++) {
/* 1153 */ bandValues[b] = new Byte(-1);
/* */ }
/* 1155 */ pb.add(bandValues);
/* */
/* 1157 */ ImageLayout il = new ImageLayout();
/* 1158 */ il.setSampleModel(ti.getSampleModel());
/* 1159 */ RenderingHints rh = new RenderingHints(JAI.KEY_IMAGE_LAYOUT, il);
/* */
/* 1162 */ PlanarImage constImage = JAI.create("constant", pb, rh);
/* */
/* 1165 */ ROI complementROI = new ROIShape(ti.getBounds()).subtract(roi);
/* */
/* 1169 */ int maxTileY = ti.getMaxTileY();
/* 1170 */ int maxTileX = ti.getMaxTileX();
/* 1171 */ for (int j = ti.getMinTileY(); j <= maxTileY; j++) {
/* 1172 */ for (int i = ti.getMinTileX(); i <= maxTileX; i++) {
/* 1173 */ if (!roi.intersects(ti.getTileRect(i, j))) {
/* 1174 */ ti.setData(constImage.getTile(i, j), complementROI);
/* */ }
/* */
/* */ }
/* */