01: /*
02: * CRaster.java
03: *
04: * Created on February 17, 2004, 3:20 AM
05: */
06:
07: package org.netbeans.imagecache;
08:
09: import java.awt.Point;
10: import java.awt.image.Raster;
11: import java.awt.image.WritableRaster;
12: import java.nio.IntBuffer;
13: import sun.awt.image.SunWritableRaster;
14:
15: /**
16: *
17: * @author tim
18: */
19: public class CRaster extends SunWritableRaster {
20:
21: /** Creates a new instance of CRaster */
22: public CRaster(IntBuffer buf, int width, int height) {
23: super (new CSampleModel(width, height), new CDataBuffer(buf,
24: width, height), new Point(0, 0));
25: }
26:
27: public int[] getSamples(int x, int y, int w, int h, int b,
28: int[] iArray) {
29: System.err.println("GET SAMPLES: " + x + "," + y);
30: return super.getSamples(x, y, w, h, b, iArray);
31: }
32:
33: }
|