ImagePoint Class
- java.
lang. Object - com.
azure. ai. vision. imageanalysis. models. ImagePoint
- com.
Implements
public final class ImagePoint
implements JsonSerializable<ImagePoint>
Represents the coordinates of a single pixel in the image.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
int |
getX()
Get the x property: The horizontal x-coordinate of this point, in pixels. |
int |
getY()
Get the y property: The vertical y-coordinate of this point, in pixels. |
Json |
toJson(JsonWriter jsonWriter) |
String |
toString()
Returns a compact string containing the image point values in a style suitable for printing. |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ImagePoint fromJson(JsonReader jsonReader)
Reads an instance of ImagePoint from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
toString
public String toString()
Returns a compact string containing the image point values in a style suitable for printing.
Overrides:
ImagePoint.toString()Returns:
Applies to
Azure SDK for Java