Changeset 224
- Timestamp:
- 04/22/06 17:13:53 (2 years ago)
- Files:
-
- misc/java/src/edu/cmu/cs/cc3/misc/FakePixbuf.java (modified) (1 diff)
- misc/java/src/edu/cmu/cs/cc3/misc/Pixbuf.java (modified) (1 diff)
- misc/java/src/edu/cmu/cs/cc3/misc/Test.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
misc/java/src/edu/cmu/cs/cc3/misc/FakePixbuf.java
r223 r224 57 57 public void rewind() { 58 58 cursor = 0; 59 yLoc = 0; 59 60 } 60 61 misc/java/src/edu/cmu/cs/cc3/misc/Pixbuf.java
r222 r224 100 100 int p = coi == CHANNEL_ALL ? 3 : 1; 101 101 102 System.out.println("allocate " + p + " * " + getWidth() + " * " + rows);102 // System.out.println("allocate " + p + " * " + getWidth() + " * " + rows); 103 103 104 104 return new byte[p * getWidth() * rows]; misc/java/src/edu/cmu/cs/cc3/misc/Test.java
r223 r224 27 27 final JSpinner xStep, yStep, x0, x1, y0, y1; 28 28 29 Pixbuf p = new FakePixbuf(); 30 29 31 public Test() { 30 32 jf = new JFrame("cc3 test"); … … 61 63 62 64 private void reset() { 63 Pixbuf p = new FakePixbuf();64 65 p.setROI(((Integer) x0.getValue()).intValue(), 65 66 ((Integer) y0.getValue()).intValue(), ((Integer) x1.getValue()) … … 99 100 100 101 private static void fillImage(BufferedImage b, Pixbuf p) { 101 //p.rewind();102 p.rewind(); 102 103 103 104 byte row[] = p.allocateRows(1);
