01: /*
02: * $RCSfile: RandomIterCSMDouble.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:55:42 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.iterator;
13:
14: import java.awt.Rectangle;
15: import java.awt.image.RenderedImage;
16: import javax.media.jai.iterator.RandomIter;
17:
18: /**
19: * @since EA2
20: */
21: public class RandomIterCSMDouble extends RandomIterCSM {
22:
23: public RandomIterCSMDouble(RenderedImage im, Rectangle bounds) {
24: super (im, bounds);
25: }
26:
27: public final int getSample(int x, int y, int b) {
28: return (int) getSampleDouble(x, y, b);
29: }
30:
31: public final float getSampleFloat(int x, int y, int b) {
32: return (float) getSampleDouble(x, y, b);
33: }
34:
35: public final double getSampleDouble(int x, int y, int b) {
36: return 0.0;
37: }
38: }
|