Class PromptImageGeometryData
java.lang.Object
de.xima.fc.prompt.service.support.PromptImageGeometryData
Represents the target geometry of an image. The image is placed on a canvas of the given size at the given
coordinates and with the given size.
(Canvas)
+----------------------------------------------+
| |
| |
| |
| |
| P(imageX,imageY) |
| +-----------------------+ |
| | | | (canvas height)
| | | |
| | (Image) | (image height) |
| | | |
| | | |
| +-----------------------+ |
| (image width) |
| |
+----------------------------------------------+
(canvas width)
- Since:
- 8.5.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forPromptImageGeometryData.intGets the height of the canvas.intGets the width of the canvas.intGets the height of the image inside the canvas.intGets the width of the image inside the canvas.intimageX()Gets the X coordinate of the image inside the canvas.intimageY()Gets the Y coordinate of the image inside the canvas.
-
Method Details
-
canvasHeight
public int canvasHeight()Gets the height of the canvas.- Returns:
- The height of the canvas.
-
canvasWidth
public int canvasWidth()Gets the width of the canvas.- Returns:
- The width of the canvas.
-
imageHeight
public int imageHeight()Gets the height of the image inside the canvas.- Returns:
- The height of the image.
-
imageWidth
public int imageWidth()Gets the width of the image inside the canvas.- Returns:
- The width of the image.
-
imageX
public int imageX()Gets the X coordinate of the image inside the canvas.- Returns:
- The X coordinate of the image.
-
imageY
public int imageY()Gets the Y coordinate of the image inside the canvas.- Returns:
- The Y coordinate of the image.
-
builder
Creates a builder forPromptImageGeometryData.- Returns:
- The builder.
-