Image

Constructor

Image <id> (string path_to_image, double x, double y, double width, double height)

Action

Draws a pixmap image from the specfied file.

Predefined children

path, x, y, width, height.

Example


use core
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 400, 400)
  Image img ("/home/my_home/images/my_image.png", 200, 200, 200, 200)
}

run root
run syshook