01: /*
02: * $RCSfile: ConjugateCRIF.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:56:19 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.opimage;
13:
14: import java.awt.RenderingHints;
15: import java.awt.image.RenderedImage;
16: import java.awt.image.renderable.ParameterBlock;
17: import javax.media.jai.CRIFImpl;
18: import javax.media.jai.ImageLayout;
19: import java.util.Map;
20:
21: /**
22: * A <code>CRIF</code> supporting the "Conjugate" operation in the
23: * rendered and renderable image layer.
24: *
25: * @see javax.media.jai.operator.ConjugateDescriptor
26: * @see ConjugateOpImage
27: *
28: * @since EA4
29: */
30: public class ConjugateCRIF extends CRIFImpl {
31:
32: /** Constructor. */
33: public ConjugateCRIF() {
34: super ("conjugate");
35: }
36:
37: /**
38: * Creates a new instance of <code>ConjugateOpImage</code> in the rendered
39: * layer.
40: *
41: * @param paramBlock The source image of which to take the conjugate.
42: */
43: public RenderedImage create(ParameterBlock paramBlock,
44: RenderingHints renderHints) {
45: // Get ImageLayout from renderHints if any.
46: ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints);
47:
48: return new ConjugateOpImage(paramBlock.getRenderedSource(0),
49: renderHints, layout);
50: }
51: }
|