WarpPI/desktop/src/main/java/ar/com/hjg/pngj/IImageLineArray.java

27 lines
664 B
Java
Raw Normal View History

package ar.com.hjg.pngj;
/**
2018-08-28 02:39:41 +02:00
* This interface is just for the sake of unifying some methods of
* {@link ImageLineHelper} that can use both
* {@link ImageLineInt} or {@link ImageLineByte}. It's not very useful outside
* that, and the user should not rely much
* on this.
*/
public interface IImageLineArray {
2018-08-28 02:39:41 +02:00
public ImageInfo getImageInfo();
2018-08-28 02:39:41 +02:00
public FilterType getFilterType();
2018-08-28 02:39:41 +02:00
/**
* length of array (should correspond to samples)
*/
public int getSize();
2018-08-28 02:39:41 +02:00
/**
* Get i-th element of array (for 0 to size-1). The meaning of this is type
* dependent. For ImageLineInt and
* ImageLineByte is the sample value.
*/
public int getElem(int i);
}