The Image.height function returns the height, in pixels, of the image held by the Image object.
Return Value
The function returns the height in pixels, or default if the Image object does not contain an image.
Example
// create thumbnails for every image in the Photos directory, // placing the thumbnails in the Thumbnails directory Liststring image_listing; dirlist(image_listing, "Photos", "*.jpg;*.png");
if thumbnail_image.load(image_listing(counter)) then
// create a thumbnail at 25% of the original image size thumbnail_image.resample(thumbnail_image.width() / 4, thumbnail_image.height() / 4);
// prefix the thumbnail filename with the text "tn" string thumbnail_filename = Path.concat("Thumbnails", "tn" + Path.getFileName(image_listing(counter)));