/** * Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF. * * @param i The index of the source image. * @param renderContext The renderContext being applied to the operation. * @param paramBlock The ParameterBlock containing the sources and the translation factors. * @param image The RenderableImageOp from which this method was called. */ public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) { Object arg0 = paramBlock.getObjectParameter(0); AffineTransform affine = (AffineTransform) arg0; RenderContext RC = (RenderContext) renderContext.clone(); AffineTransform usr2dev = RC.getTransform(); usr2dev.concatenate(affine); RC.setTransform(usr2dev); return RC; }
/** * Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF. * * @param i The index of the source image. * @param renderContext The renderContext being applied to the operation. * @param paramBlock The ParameterBlock containing the sources and the translation factors. * @param image The RenderableImageOp from which this method was called. */ public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) { Object arg0 = paramBlock.getObjectParameter(0); AffineTransform affine = (AffineTransform) arg0; RenderContext RC = (RenderContext) renderContext.clone(); AffineTransform usr2dev = RC.getTransform(); usr2dev.concatenate(affine); RC.setTransform(usr2dev); return RC; }
/** * Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF. * * @param i The index of the source image. * @param renderContext The renderContext being applied to the operation. * @param paramBlock The ParameterBlock containing the sources and the translation factors. * @param image The RenderableImageOp from which this method was called. */ public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) { float scale_x = paramBlock.getFloatParameter(0); float scale_y = paramBlock.getFloatParameter(1); float trans_x = paramBlock.getFloatParameter(2); float trans_y = paramBlock.getFloatParameter(3); AffineTransform scale = new AffineTransform(scale_x, 0.0, 0.0, scale_y, trans_x, trans_y); RenderContext RC = (RenderContext) renderContext.clone(); AffineTransform usr2dev = RC.getTransform(); usr2dev.concatenate(scale); RC.setTransform(usr2dev); return RC; }
/** * Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF. * * @param i The index of the source image. * @param renderContext The renderContext being applied to the operation. * @param paramBlock The ParameterBlock containing the sources and the translation factors. * @param image The RenderableImageOp from which this method was called. */ public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) { float scale_x = paramBlock.getFloatParameter(0); float scale_y = paramBlock.getFloatParameter(1); float trans_x = paramBlock.getFloatParameter(2); float trans_y = paramBlock.getFloatParameter(3); AffineTransform scale = new AffineTransform(scale_x, 0.0, 0.0, scale_y, trans_x, trans_y); RenderContext rc = (RenderContext) renderContext.clone(); AffineTransform usr2dev = rc.getTransform(); usr2dev.concatenate(scale); rc.setTransform(usr2dev); return rc; }
/** * Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF. * * @param i The index of the source image. * @param renderContext The renderContext being applied to the operation. * @param paramBlock The ParameterBlock containing the sources and the translation factors. * @param image The RenderableImageOp from which this method was called. */ public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) { float scale_x = paramBlock.getFloatParameter(0); float scale_y = paramBlock.getFloatParameter(1); float trans_x = paramBlock.getFloatParameter(2); float trans_y = paramBlock.getFloatParameter(3); AffineTransform scale = new AffineTransform(scale_x, 0.0, 0.0, scale_y, trans_x, trans_y); RenderContext RC = (RenderContext) renderContext.clone(); AffineTransform usr2dev = RC.getTransform(); usr2dev.concatenate(scale); RC.setTransform(usr2dev); return RC; }
/** * Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF. * * @param i The index of the source image. * @param renderContext The renderContext being applied to the operation. * @param paramBlock The ParameterBlock containing the sources and the translation factors. * @param image The RenderableImageOp from which this method was called. */ public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) { float scale_x = paramBlock.getFloatParameter(0); float scale_y = paramBlock.getFloatParameter(1); float trans_x = paramBlock.getFloatParameter(2); float trans_y = paramBlock.getFloatParameter(3); AffineTransform scale = new AffineTransform(scale_x, 0.0, 0.0, scale_y, trans_x, trans_y); RenderContext rc = (RenderContext) renderContext.clone(); AffineTransform usr2dev = rc.getTransform(); usr2dev.concatenate(scale); rc.setTransform(usr2dev); return rc; }
rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale);
rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale);
rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale);
rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale);
rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale);
rc = (RenderContext)rc.clone(); rc.setAreaOfInterest(aoiR); rc.setTransform(scale);