Interface TestScreenshotComparisonAlgorithm.RawImage<DATA>
- Type Parameters:
DATA
- The type of the image data array
- Enclosing interface:
TestScreenshotComparisonAlgorithm
@NonExtendable
public static interface TestScreenshotComparisonAlgorithm.RawImage<DATA>
A thin wrapper around a raw image data array, so that algorithms can directly access the array which may be more
efficient than going through a
NativeImage
each time.-
Method Summary
-
Method Details
-
width
int width()The width of the image.- Returns:
- The width of the image
-
height
int height()The height of the image.- Returns:
- The height of the image
-
data
DATA data()The raw image data. Each element of this array represents one pixel and is indexed byy * this.width() + x
, where (x
,y
) are the coordinates of the pixel you want to index. The length of the array isthis.width() * this.height()
.- Returns:
- The raw image data
-