(int width, int height)
| 358 | } |
| 359 | |
| 360 | private static int getSize(int width, int height) { |
| 361 | long size = (long)width*height; |
| 362 | if (size>Integer.MAX_VALUE) { |
| 363 | IJ.error("Image is too large. ImageJ does not support\nsingle images larger than 2 gigapixels."); |
| 364 | return -1; |
| 365 | } else |
| 366 | return (int)size; |
| 367 | } |
| 368 | |
| 369 | public static void open(String title, int width, int height, int nSlices, int type, int options) { |
| 370 | int bitDepth = 8; |
no test coverage detected