Prima::ImageViewer - standard image, icon, and bitmap viewer class. |
Prima::ImageViewer - standard image, icon, and bitmap viewer class.
The module contains Prima::ImageViewer
class, which provides
image displaying functionality, including different zoom levels.
Prima::ImageViewer
is a descendant of Prima::ScrollWidget
and inherits its document scrolling behavior and programming interface.
See the Prima::ScrollWidget manpage for details.
ta::XXX
constants:
ta::Left ta::Center ta::Right
Selects the horizontal image alignment.
Default value: ta::Left
Prima::Image
, Prima::Icon
, or Prima::DeviceBitmap
class.
image
is to be
copied into the widget palette, providing higher visual
quality on paletted displays. See also palette in the Prima::Widget manpage.
Default value: 1
ta::XXX
constants:
ta::Top ta::Middle or ta::Center ta::Bottom
Selects the vertical image alignment.
NB: ta::Middle
value is not equal to ta::Center
's, however
the both constants produce equal effect here.
Default value: ta::Bottom
Default value: 1
Useful for determining correspondence, for example, of a mouse event to a image point.
The reverse function is point2screen
.
Useful for determining a screen location of an image point.
The reverse function is screen2point
.
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima, the Prima::Image manpage, the Prima::ScrollWidget manpage, examples/iv.pl.
Prima::ImageViewer - standard image, icon, and bitmap viewer class. |