Interface ImageSupplier<S>

Type Parameters:
S - the type of image
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ImageSupplier<S>
A functional interface for supplying an image region for processing.
Since:
v0.5.0
  • Method Details

    • getImage

      S getImage(Parameters<S,?> parameters) throws IOException
      Get the image to process. This should correspond to the region request and image server stored in the parameters.

      This has access to the parameters, but must not call parameters.getImage() or parameters.getMask() to avoid the risk of infinite recursion.

      Parameters:
      parameters -
      Returns:
      an image based upon the stored parameters
      Throws:
      IOException
    • createBufferedImageSupplier

      static ImageSupplier<BufferedImage> createBufferedImageSupplier()
      Create a image supplier that returns a buffered image.
      Returns: