Changeset 217
- Timestamp:
- 04/22/06 12:32:28 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
misc/java/src/edu/cmu/cs/cc3/Pixbuf.java
r216 r217 22 22 int width, height; 23 23 24 24 25 public abstract void rewind(); 25 26 … … 87 88 } 88 89 89 public abstract void readRows(byte[] mem, int rows); 90 90 public abstract byte read(); 91 92 public abstract void skip(); 93 94 91 95 public void setCOI(int channel) { 92 96 coi = channel; 93 }94 95 public byte[] allocateRows(int rows) {96 int s = coi == CHANNEL_ALL ? 3 : 1;97 return new byte[s * rows * width];98 97 } 99 98
