Method
getByteRow
(ImageStack stack, int x, int y, int z, int width1, int width2, int[] line)
Source from the content-addressed store, hash-verified
| 839 | } |
| 840 | |
| 841 | private void getByteRow(ImageStack stack, int x, int y, int z, int width1, int width2, int[] line) { |
| 842 | byte[] pixels = (byte[])stack.getPixels(z+1); |
| 843 | int j = x + y*width1; |
| 844 | for (int i=0; i<width2; i++) |
| 845 | line[i] = pixels[j++]&255; |
| 846 | } |
| 847 | |
| 848 | private void putByteRow(ImageStack stack, int y, int z, int width, int[] line) { |
| 849 | byte[] pixels = (byte[])stack.getPixels(z+1); |
Tested by
no test coverage detected