public ImageTypeSpecifier getDestinationType() { return adaptee.getDestinationType(); }
private boolean isDestinationCMYK(final IIOImage image, final ImageWriteParam param) { // If destination type != null, rendered image type doesn't matter return !image.hasRaster() && image.getRenderedImage().getColorModel().getColorSpace().getType() == ColorSpace.TYPE_CMYK || param != null && param.getDestinationType() != null && param.getDestinationType().getColorModel().getColorSpace().getType() == ColorSpace.TYPE_CMYK; }
private void writeCMYK(final IIOMetadata streamMetadata, final IIOImage image, final ImageWriteParam param) throws IOException { RenderedImage renderedImage = image.getRenderedImage(); boolean overrideDestination = param != null && param.getDestinationType() != null; ImageTypeSpecifier destinationType = overrideDestination ? param.getDestinationType() : ImageTypeSpecifier.createFromRenderedImage(renderedImage);
public ImageTypeSpecifier getDestinationType() { return adaptee.getDestinationType(); }
public ImageTypeSpecifier getDestinationType() { return adaptee.getDestinationType(); }
public ImageTypeSpecifier getDestinationType() { return adaptee.getDestinationType(); }
public ImageTypeSpecifier getDestinationType() { return adaptee.getDestinationType(); }
if (iwParam.getDestinationType() != null) { type = iwParam.getDestinationType(); } else { type = ImageTypeSpecifier.createFromRenderedImage(image);
private boolean isDestinationCMYK(final IIOImage image, final ImageWriteParam param) { // If destination type != null, rendered image type doesn't matter return !image.hasRaster() && image.getRenderedImage().getColorModel().getColorSpace().getType() == ColorSpace.TYPE_CMYK || param != null && param.getDestinationType() != null && param.getDestinationType().getColorModel().getColorSpace().getType() == ColorSpace.TYPE_CMYK; }
public void writeImage(RenderedImage image, ImageWriterParams params) throws IOException { if (iiowriter == null) { throw new IllegalStateException("MultiImageWriter already closed!"); } ImageWriteParam iwParam = getDefaultWriteParam(iiowriter, image, params); if (!prepared) { //Only prepare once IIOMetadata streamMetadata = createStreamMetadata(iiowriter, iwParam, params); iiowriter.prepareWriteSequence(streamMetadata); prepared = true; } ImageTypeSpecifier type; if (iwParam.getDestinationType() != null) { type = iwParam.getDestinationType(); } else { type = ImageTypeSpecifier.createFromRenderedImage(image); } //Handle metadata IIOMetadata meta = iiowriter.getDefaultImageMetadata( type, iwParam); //meta might be null for some JAI codecs as they don't support metadata if (params != null && meta != null) { meta = updateMetadata(image, meta, params); } //Write image IIOImage iioimg = new IIOImage(image, null, meta); iiowriter.writeToSequence(iioimg, iwParam); }
if (iwParam.getDestinationType() != null) { type = iwParam.getDestinationType(); } else { type = ImageTypeSpecifier.createFromRenderedImage(image);
if (iwParam.getDestinationType() != null) { type = iwParam.getDestinationType(); } else { type = ImageTypeSpecifier.createFromRenderedImage(image);
destType = param.getDestinationType(); if (destType == null) { destType = imageType;
destType = param.getDestinationType(); if (destType == null) { destType = imageType;
destType = param.getDestinationType(); if (destType == null) { destType = imageType;
param.getSubsamplingXOffset(), param.getSubsamplingYOffset()); setDestinationType(param.getDestinationType());
param.getSubsamplingXOffset(), param.getSubsamplingYOffset()); setDestinationType(param.getDestinationType());
param.getSubsamplingXOffset(), param.getSubsamplingYOffset()); setDestinationType(param.getDestinationType());
param.getSubsamplingXOffset(), param.getSubsamplingYOffset()); setDestinationType(param.getDestinationType());
param.getSubsamplingXOffset(), param.getSubsamplingYOffset()); setDestinationType(param.getDestinationType());