Image Widget#

Back To User Interface

Image is a widget which renders an image to the screen.

Properties#

Property Description
image The image to render
fit The fit to apply to the image
interpolation The pixel interpolation to use for the image

Usage#

Image.create(IO.getImage("img.png"));

Image.create(
  props -> {
    props.image = IO.getImage("img.png");
    props.fit = ImageFit.CROP;
    props.interpolation = ImageInterpolation.BICUBIC;
  }
);