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

    Modifier and Type
    Method
    Description
    The raw image data.
    int
    The height of the image.
    int
    The width of the image.
  • 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 by y * this.width() + x, where (x, y) are the coordinates of the pixel you want to index. The length of the array is this.width() * this.height().
      Returns:
      The raw image data