2018-06-11 22:41:11 +02:00
|
|
|
package ar.com.hjg.pngj;
|
|
|
|
|
|
|
|
/**
|
2018-09-22 11:17:30 +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
|
2018-06-11 22:41:11 +02:00
|
|
|
* on this.
|
|
|
|
*/
|
|
|
|
public interface IImageLineArray {
|
2018-09-22 11:17:30 +02:00
|
|
|
ImageInfo getImageInfo();
|
2018-06-11 22:41:11 +02:00
|
|
|
|
2018-09-22 11:17:30 +02:00
|
|
|
FilterType getFilterType();
|
2018-06-11 22:41:11 +02:00
|
|
|
|
2018-09-22 11:17:30 +02:00
|
|
|
/**
|
|
|
|
* length of array (should correspond to samples)
|
|
|
|
*/
|
|
|
|
int getSize();
|
2018-06-11 22:41:11 +02:00
|
|
|
|
2018-09-22 11:17:30 +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.
|
|
|
|
*/
|
|
|
|
int getElem(int i);
|
2018-06-11 22:41:11 +02:00
|
|
|
}
|