if (type.contains("white"))
options = NewImage.FILL_WHITE;
else if (type.contains("black"))
options = NewImage.FILL_BLACK;
else if (type.contains("ramp"))
<BUG>options = NewImage.FILL_RAMP;
options += NewImage.CHECK_AVAILABLE_MEMORY;</BUG>
return NewImage.createImage(title, width, height, depth, bitDepth, options);
}
public static ImagePlus createImage(String title, String type, int width, int height, int channels, int slices, int frames) {

if (type.contains("white"))
options = NewImage.FILL_WHITE;
else if (type.contains("black"))
options = NewImage.FILL_BLACK;
else if (type.contains("ramp"))
options = NewImage.FILL_RAMP;
else if (type.contains("random"))
options = NewImage.FILL_RANDOM;
options += NewImage.CHECK_AVAILABLE_MEMORY;
return NewImage.createImage(title, width, height, depth, bitDepth, options);
}
public static ImagePlus createImage(String title, String type, int width, int height, int channels, int slices, int frames) {
