Assigns a pixel array to the specified slice, where {@literal 1<=n<=nslices}.
(Object pixels, int n)
| 227 | |
| 228 | /** Assigns a pixel array to the specified slice, where {@literal 1<=n<=nslices}. */ |
| 229 | public void setPixels(Object pixels, int n) { |
| 230 | if (n<1 || n>nSlices) |
| 231 | throw new IllegalArgumentException(outOfRange+n); |
| 232 | stack[n-1] = pixels; |
| 233 | if (this.bitDepth==0) |
| 234 | setBitDepth(pixels); |
| 235 | } |
| 236 | |
| 237 | /** Returns the stack as an array of 1D pixel arrays. Note |
| 238 | that the size of the returned array may be greater than |
no test coverage detected