final ImageLayout layout = getImageLayout(hints); if (commonHints == null || layout != commonHints.get(JAI.KEY_IMAGE_LAYOUT)) {
final ImageLayout layout = getImageLayout(hints); if (layout.isValid(ImageLayout.COLOR_MODEL_MASK)) { return hints;
/** * If the was not already tiled, tile it. Note that no tiling will be done if * 'getRenderingHints()' failed to suggest a tile size. This method is for internal use by * {@link #write} methods only. * * @return this {@link ImageWorker}. */ public final ImageWorker tile() { final RenderingHints hints = getRenderingHints(); final ImageLayout layout = getImageLayout(hints); if (layout.isValid(ImageLayout.TILE_WIDTH_MASK) || layout.isValid(ImageLayout.TILE_HEIGHT_MASK)) { final int type = image.getSampleModel().getDataType(); // ParameterBlock definition ParameterBlock pb = new ParameterBlock(); pb.setSource(image, 0); // The source image. pb.set(type, 0); image = JAI.create("Format", pb, hints); setNoData(RangeFactory.convert(nodata, type)); } return this; }
final ImageLayout layout = getImageLayout(hints); layout.setColorModel(newCM); worker.setRenderingHint(JAI.KEY_IMAGE_LAYOUT, layout);
newPixelSize, newSize, rgb[0], rgb[1], rgb[2], suggestedTransparent); final RenderingHints hints = getRenderingHints(); final ImageLayout layout = getImageLayout(hints); layout.setColorModel(newCM);
/** * If the was not already tiled, tile it. Note that no tiling will be done * if 'getRenderingHints()' failed to suggest a tile size. This method is * for internal use by {@link #write} methods only. * * @return this {@link ImageWorker}. */ public final ImageWorker tile() { final RenderingHints hints = getRenderingHints(); final ImageLayout layout = getImageLayout(hints); if (layout.isValid(ImageLayout.TILE_WIDTH_MASK) || layout.isValid(ImageLayout.TILE_HEIGHT_MASK)) { final int type = image.getSampleModel().getDataType(); image = FormatDescriptor.create(image, new Integer(type), hints); } return this; }
/** * If the was not already tiled, tile it. Note that no tiling will be done * if 'getRenderingHints()' failed to suggest a tile size. This method is * for internal use by {@link #write} methods only. * * @return this {@link ImageWorker}. */ public final ImageWorker tile() { final RenderingHints hints = getRenderingHints(); final ImageLayout layout = getImageLayout(hints); if (layout.isValid(ImageLayout.TILE_WIDTH_MASK) || layout.isValid(ImageLayout.TILE_HEIGHT_MASK)) { final int type = image.getSampleModel().getDataType(); image = FormatDescriptor.create(image, type, hints); } return this; }
final ImageLayout layout = getImageLayout(hints); if (commonHints==null || layout != commonHints.get(JAI.KEY_IMAGE_LAYOUT)) {
final ImageLayout layout = getImageLayout(hints); if (layout.isValid(ImageLayout.COLOR_MODEL_MASK)) { return hints;
final ImageLayout layout = getImageLayout(hints); if (commonHints==null || layout != commonHints.get(JAI.KEY_IMAGE_LAYOUT)) {
final ImageLayout layout = getImageLayout(hints); if (layout.isValid(ImageLayout.COLOR_MODEL_MASK)) { return hints;
newSize, rgb[0], rgb[1], rgb[2], transparent); final RenderingHints hints = getRenderingHints(); final ImageLayout layout = getImageLayout(hints); layout.setColorModel(newCM); hints.put(JAI.KEY_IMAGE_LAYOUT, layout);
final ImageLayout layout = getImageLayout(hints); layout.setColorModel(newCM); worker.setRenderingHint(JAI.KEY_IMAGE_LAYOUT, layout);
final ImageLayout layout = getImageLayout(hints); layout.setColorModel(newCM); worker.setRenderingHint(JAI.KEY_IMAGE_LAYOUT, layout);
final IndexColorModel newCM = new IndexColorModel(newPixelSize,newSize, rgb[0], rgb[1], rgb[2], suggestedTransparent); final RenderingHints hints = getRenderingHints(); final ImageLayout layout = getImageLayout(hints); layout.setColorModel(newCM);