Class ImageBoundingBox
java.lang.Object
com.azure.ai.vision.imageanalysis.models.ImageBoundingBox
A basic rectangle specifying a sub-region of the image.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the height property: Height of the area, in pixels.intgetWidth()Get the width property: Width of the area, in pixels.intgetX()Get the x property: X-coordinate of the top left point of the area, in pixels.intgetY()Get the y property: Y-coordinate of the top left point of the area, in pixels.toString()Returns a compact string containing the bounding box values in a style suitable for printing.
-
Method Details
-
getX
public int getX()Get the x property: X-coordinate of the top left point of the area, in pixels.- Returns:
- the x value.
-
getY
public int getY()Get the y property: Y-coordinate of the top left point of the area, in pixels.- Returns:
- the y value.
-
getWidth
public int getWidth()Get the width property: Width of the area, in pixels.- Returns:
- the width value.
-
getHeight
public int getHeight()Get the height property: Height of the area, in pixels.- Returns:
- the height value.
-
toString
Returns a compact string containing the bounding box values in a style suitable for printing.
-