Changeset 224

Show
Ignore:
Timestamp:
04/22/06 17:13:53 (2 years ago)
Author:
goodea
Message:

perfect

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • misc/java/src/edu/cmu/cs/cc3/misc/FakePixbuf.java

    r223 r224  
    5757    public void rewind() { 
    5858        cursor = 0; 
     59        yLoc = 0; 
    5960    } 
    6061 
  • misc/java/src/edu/cmu/cs/cc3/misc/Pixbuf.java

    r222 r224  
    100100        int p = coi == CHANNEL_ALL ? 3 : 1; 
    101101         
    102         System.out.println("allocate " + p + " * " + getWidth() + " * " + rows); 
     102//        System.out.println("allocate " + p + " * " + getWidth() + " * " + rows); 
    103103         
    104104        return new byte[p * getWidth() * rows]; 
  • misc/java/src/edu/cmu/cs/cc3/misc/Test.java

    r223 r224  
    2727    final JSpinner xStep, yStep, x0, x1, y0, y1; 
    2828 
     29    Pixbuf p = new FakePixbuf(); 
     30     
    2931    public Test() { 
    3032        jf = new JFrame("cc3 test"); 
     
    6163 
    6264    private void reset() { 
    63         Pixbuf p = new FakePixbuf(); 
    6465        p.setROI(((Integer) x0.getValue()).intValue(), 
    6566                ((Integer) y0.getValue()).intValue(), ((Integer) x1.getValue()) 
     
    99100 
    100101    private static void fillImage(BufferedImage b, Pixbuf p) { 
    101 //        p.rewind(); 
     102        p.rewind(); 
    102103 
    103104        byte row[] = p.allocateRows(1);