return 16;
PixelsType type = pixels.getPixelsType();  if (type.getValue().equals("int8") || type.getValue().equals("uint8")) { return 8; } else if (type.getValue().equals("int16") || type.getValue().equals("uint16")) { return 16; } else if (type.getValue().equals("int32") || type.getValue().equals("uint32") || type.getValue().equals("float")) { return 32; } else if (type.getValue().equals("double")) { return 64; }  throw new RuntimeException("Pixels type '" + type.getValue() + "' unsupported by nio.");
    int getBitDepth()    {        return 16;  // FIXME pixels.getPixelsType();    }