/** Save the image in BMP format using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsBmp() { String path = getPath("BMP", ".bmp"); if (path==null) return false; else return saveAsBmp(path); }
/** Save the image in PNG format using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsPng() { String path = getPath("PNG", ".png"); if (path==null) return false; else return saveAsPng(path); }
/** Save the image in GIF format using a save file dialog. Returns false if the user selects cancel or the image is not 8-bits. */ public boolean saveAsGif() { String path = getPath("GIF", ".gif"); if (path==null) return false; else return saveAsGif(path); }
/** Save the image as tab-delimited text using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsText() { String path = getPath("Text", ".txt"); if (path==null) return false; return saveAsText(path); }
/** Uses a save file dialog to save the image or stack as a TIFF in a ZIP archive. Returns false if the user selects cancel. */ public boolean saveAsZip() { String path = getPath("TIFF/ZIP", ".zip"); if (path==null) return false; else return saveAsZip(path); }
/** Save the image in BMP format using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsBmp() { String path = getPath("BMP", ".bmp"); if (path==null) return false; else return saveAsBmp(path); }
/** Save the image in GIF format using a save file dialog. Returns false if the user selects cancel or the image is not 8-bits. */ public boolean saveAsGif() { String path = getPath("GIF", ".gif"); if (path==null) return false; else return saveAsGif(path); }
/** Save the image in PNG format using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsPng() { String path = getPath("PNG", ".png"); if (path==null) return false; else return saveAsPng(path); }
/** Save the image as tab-delimited text using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsText() { String path = getPath("Text", ".txt"); if (path==null) return false; return saveAsText(path); }
/** Saves the image or stack in TIFF format using a save file dialog. Returns false if the user selects cancel. Equivalent to IJ.saveAsTiff(imp,""), which is more convenient. */ public boolean saveAsTiff() { String path = getPath("TIFF", ".tif"); if (path==null) return false; if (fi.nImages>1) return saveAsTiffStack(path); else return saveAsTiff(path); }
/** Save the image in FITS format using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsFits() { if (!okForFits(imp)) return false; String path = getPath("FITS", ".fits"); if (path==null) return false; else return saveAsFits(path); }
/** Saves grayscale images in PGM (portable graymap) format and RGB images in PPM (portable pixmap) format, using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsPgm() { String extension = imp.getBitDepth()==24?".pnm":".pgm"; String path = getPath("PGM", extension); if (path==null) return false; else return saveAsPgm(path); }
/** Saves the image or stack in TIFF format using a save file dialog. Returns false if the user selects cancel. Equivalent to IJ.saveAsTiff(imp,""), which is more convenient. */ public boolean saveAsTiff() { String path = getPath("TIFF", ".tif"); if (path==null) return false; if (fi.nImages>1) return saveAsTiffStack(path); else return saveAsTiff(path); }
/** Save the image in FITS format using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsFits() { if (!okForFits(imp)) return false; String path = getPath("FITS", ".fits"); if (path==null) return false; else return saveAsFits(path); }
/** Save the image in JPEG format using a save file dialog. Returns false if the user selects cancel. @see #setJpegQuality @see #getJpegQuality */ public boolean saveAsJpeg() { String type = "JPEG ("+getJpegQuality()+")"; String path = getPath(type, ".jpg"); if (path==null) return false; else return saveAsJpeg(path); }
/** Saves grayscale images in PGM (portable graymap) format and RGB images in PPM (portable pixmap) format, using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsPgm() { String extension = imp.getBitDepth()==24?".pnm":".pgm"; String path = getPath("PGM", extension); if (path==null) return false; else return saveAsPgm(path); }
/** Save the image or stack as raw data using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsRaw() { String path = getPath("Raw", ".raw"); if (path==null) return false; if (imp.getStackSize()==1) return saveAsRaw(path); else return saveAsRawStack(path); }
/** Save the current LUT using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsLut() { if (imp.getType()==ImagePlus.COLOR_RGB) { error("RGB Images do not have a LUT."); return false; } String path = getPath("LUT", ".lut"); if (path==null) return false; return saveAsLut(path); }
/** Save the current LUT using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsLut() { if (imp.getType()==ImagePlus.COLOR_RGB) { error("RGB Images do not have a LUT."); return false; } String path = getPath("LUT", ".lut"); if (path==null) return false; return saveAsLut(path); }
/** Save the image or stack as raw data using a save file dialog. Returns false if the user selects cancel. */ public boolean saveAsRaw() { String path = getPath("Raw", ".raw"); if (path==null) return false; if (imp.getStackSize()==1) return saveAsRaw(path); else return saveAsRawStack(path); }