Class ImageDatasetFactory


  • public class ImageDatasetFactory
    extends Object
    A factory for buffered images
    • Constructor Detail

      • ImageDatasetFactory

        public ImageDatasetFactory()
    • Method Detail

      • getErrorMessages

        public String getErrorMessages()
      • open

        public BufferedImage open​(String location)
        Open from a URL: adde: use AddeImage.factory() http: use javax.imageio.ImageIO.read() file: javax.imageio.ImageIO.read()
        Parameters:
        location - open from this location
        Returns:
        a BufferedImage
      • getNextImage

        public BufferedImage getNextImage​(boolean forward)
        This assumes you have opened a file. looks in the parent directory.
        Parameters:
        forward - if true got to next, else previous
        Returns:
        next file in the directory, as a BufferedImage.