view ar/com/hjg/pngj/IImageLineSetFactory.java @ 6:da7f11dcc6fd pngj

move
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 Apr 2016 10:36:51 +0200 (2016-04-15)
parents com/hjg/pngj/IImageLineSetFactory.java@3f418d4451d6
children
line wrap: on
line source
package ar.com.hjg.pngj;

/**
 * Factory of {@link IImageLineSet}, used by {@link PngReader}.
 * <p>
 * 
 * @param <T> Generic type of IImageLine
 */
public interface IImageLineSetFactory<T extends IImageLine> {
  /**
   * Creates a new {@link IImageLineSet}
   * 
   * If singleCursor=true, the caller will read and write one row fully at a time, in order (it'll never try to read out
   * of order lines), so the implementation can opt for allocate only one line.
   * 
   * @param imgInfo Image info
   * @param singleCursor : will read/write one row at a time
   * @param nlines : how many lines we plan to read
   * @param noffset : how many lines we want to skip from the original image (normally 0)
   * @param step : row step (normally 1)
   */
  public IImageLineSet<T> create(ImageInfo imgInfo, boolean singleCursor, int nlines, int noffset,
      int step);
}