Class ImagePoint

java.lang.Object
com.azure.ai.vision.imageanalysis.models.ImagePoint

public final class ImagePoint extends Object
Represents the coordinates of a single pixel in the image.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the x property: The horizontal x-coordinate of this point, in pixels.
    int
    Get the y property: The vertical y-coordinate of this point, in pixels.
    Returns a compact string containing the image point values in a style suitable for printing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getX

      public int getX()
      Get the x property: The horizontal x-coordinate of this point, in pixels. Zero values corresponds to the left-most pixels in the image.
      Returns:
      the x value.
    • getY

      public int getY()
      Get the y property: The vertical y-coordinate of this point, in pixels. Zero values corresponds to the top-most pixels in the image.
      Returns:
      the y value.
    • toString

      public String toString()
      Returns a compact string containing the image point values in a style suitable for printing.
      Overrides:
      toString in class Object
      Returns:
      A string containing the image point values.