class ImageItem extends Item
Add an image to a cartographic document
Type | Name and description |
---|---|
java.lang.Object |
path The File or URL |
Constructor and description |
---|
ImageItem(int x, int y, int width, int height) Create an Image from the top left |
Methods inherited from class | Name |
---|---|
class Item |
getRectangle |
Create an Image from the top left
x
- The number of pixels from the lefty
- The number of pixels from the topwidth
- The width in pixelsheight
- The height in pixelsLoad an Image from a file
file
- The image fileGroovy Documentation