NAME

Rui::Image - image object


SYNOPSIS

  use Rui::Image;
  $image = Rui::Image->new(
     file => "eg/Circle.gif",
     size => [16, 16],
  );
  
  $parent->Label(image => $image);           # a label with an image
  $parent->Button(image => $image);          # a button with an image
  $parent->Panel(backgroundImage => $image); # a panel with a background image
  $label->image(undef);                      # image will be removed
  $panel->backgroundImage(undef);            # background image will be removed


DESCRIPTION

Rui supports PNG, GIF, and JPEG images. You place the image file under $Rui::PROJECT_HOME/web/images. Different widgets feature different ways to add images to them.