Tile
Leave feedback
On this page
Inheritance: java.lang.Object
public class Tile
Represents drawing region.
The Tile class represents a drawing region in the GroupDocs.Viewer component. It is used to define a specific area or region within a document that needs to be rendered or processed separately. For details, see the documentation.
Example usage:
Tile tile = new Tile(100, 100, 200, 200);
PngViewOptions pngViewOptions = new PngViewOptions();
pngViewOptions.getCadOptions().setTiles(Arrays.asList(tile));
try (Viewer viewer = new Viewer("document.docx")) {
viewer.view(pngViewOptions);
// Use the viewer object for further operations
}
| Constructor | Description |
|---|---|
| Tile(int startPointX, int startPointY, int width, int height) | Initializes a new instance of the Tile class. |
| Method | Description |
|---|---|
| getStartPointX() | Gets the X coordinate of the lowest left point on the drawing where the tile begins. |
| getStartPointY() | Gets the Y coordinate of the lowest left point on the drawing where the tile begins. |
| getWidth() | Gets the width of the tile in pixels. |
| getHeight() | Gets the height of the tile in pixels. |
| getEndPointX() | Returns the X coordinate of the highest right point on the drawing where the tile ends. |
| getEndPointY() | Returns the Y coordinate of the highest right point on the drawing where the tile ends. |
public Tile(int startPointX, int startPointY, int width, int height)
Initializes a new instance of the Tile class.
This constructor creates a new tile object with the specified starting point, width, and height. For details, see the documentation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| startPointX | int | The X coordinate of the lowest left point on the drawing where the tile begins. |
| startPointY | int | The Y coordinate of the lowest left point on the drawing where the tile begins. |
| width | int | The width of the tile in pixels. |
| height | int | The height of the tile in pixels. |
public final int getStartPointX()
Gets the X coordinate of the lowest left point on the drawing where the tile begins.
For details, see the documentation.
Returns: int - the X coordinate of the lowest left point.
public final int getStartPointY()
Gets the Y coordinate of the lowest left point on the drawing where the tile begins.
For details, see the documentation.
Returns: int - the Y coordinate of the lowest left point.
public final int getWidth()
Gets the width of the tile in pixels.
For details, see the documentation.
Returns: int - the width of the tile.
public final int getHeight()
Gets the height of the tile in pixels.
For details, see the documentation.
Returns: int - the height of the tile.
public final int getEndPointX()
Returns the X coordinate of the highest right point on the drawing where the tile ends.
Returns: int - the X coordinate of the highest right point.
public final int getEndPointY()
Returns the Y coordinate of the highest right point on the drawing where the tile ends.
Returns: int - the Y coordinate of the highest right point.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.