Class ImageRequest

Object
ImageRequest

public class ImageRequest extends Object
A request for a two-dimensional view of a grid coverage. Those requests can be used for reading or rendering and image in a background thread.
Since:
1.1
See Also:
  • Constructor Details

    • ImageRequest

      public ImageRequest(GridCoverageResource source, GridGeometry domain, int... range)
      Creates a new request for loading an image from the specified resource. If domain and range arguments are null, then the full coverage will be loaded. For loading a smaller amount of data, sub-domain or sub-range can be specified as documented in the read method javadoc.
      Parameters:
      source - source of the image to load.
      domain - desired grid extent and resolution, or null for reading the whole domain.
      range - 0-based indices of sample dimensions to read, or null or an empty sequence for reading them all.
      See Also:
    • ImageRequest

      public ImageRequest(GridCoverage source, GridExtent slice)
      Creates a new request for loading an image from the specified coverage. If the slice­Extent argument is null, then the full coverage will be rendered in the first two dimensions having a size greater than 1 cell. For rendering a smaller amount of data, or for rendering data along other dimensions, a slice extent can be specified as documented in the render method javadoc.
      Parameters:
      source - source of the image to load.
      slice - a subspace of the grid coverage extent to render, or null for the whole extent.
      See Also:
  • Method Details