1 /* Copyright (C) 2005-2011 Fabio Riccardi */ 2 3 package com.lightcrafts.jai.opimage; 4 5 import com.lightcrafts.media.jai.opimage.RIFUtil; 6 7 import com.lightcrafts.mediax.jai.*; 8 import java.awt.image.RenderedImage; 9 import java.awt.image.renderable.ParameterBlock; 10 import java.awt.*; 11 12 /** 13 * Created by IntelliJ IDEA. 14 * User: fabio 15 * Date: Apr 15, 2005 16 * Time: 2:01:38 AM 17 * To change this template use File | Settings | File Templates. 18 */ 19 public class NOPCRIF extends CRIFImpl { 20 21 /** Constructor. */ NOPCRIF()22 public NOPCRIF() { 23 super("nop"); 24 } 25 26 /** 27 * Creates a new instance of <code>BlendOpImage</code> in the rendered 28 * layer. This method satisfies the implementation of RIF. 29 * 30 * @param paramBlock The two source images to be blended and the blending mode. 31 * @param renderHints Optionally contains destination image layout. 32 */ create(ParameterBlock paramBlock, RenderingHints renderHints)33 public RenderedImage create(ParameterBlock paramBlock, 34 RenderingHints renderHints) { 35 // Get ImageLayout from renderHints if any. 36 ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints); 37 38 return new NullOpImage(paramBlock.getRenderedSource(0), 39 layout, 40 renderHints, 41 OpImage.OP_COMPUTE_BOUND); 42 } 43 44 } 45