MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getSize

Method getSize

ij/src/main/java/ij/gui/NewImage.java:360–367  ·  view source on GitHub ↗
(int width, int height)

Source from the content-addressed store, hash-verified

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;

Callers 5

createByteImageMethod · 0.95
createRGBImageMethod · 0.95
createIntImageMethod · 0.95
createShortImageMethod · 0.95
createFloatImageMethod · 0.95

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected