Marc A. Lehmann

NAME

Gtk2::CV::ImageWindow - a window widget displaying an image or other media

SYNOPSIS

  use Gtk2::CV::ImageWindow;

DESCRIPTION

METHODS

$img->set_image ($gdk_pixbuf[, $type])

Replace the currently-viewed image by the given pixbuf.

$img->clear_image

Removes the current image (usually replacing it by the default image).

$img->load_image ($path)

Tries to load the given file (if it is an image), or embeds mplayer (if mplayer supports it).

$img->resize_maxpect

Resize the image so it is maximally large.

$img->resize ($width, $height)

Resize the image window to the given size.

$img->uncrop

Undo any cropping; Show the full image.

$img->crop ($x1, $y1, $x2, $y2)

Crop the image to the specified rectangle.

AUTHOR

Marc Lehmann <schmorp@schmorp.de>