class Fl_Shared_Image_Display

Class Hierarchy

Include Files

Download source: Fl_Shared_Image_Display.zip

Description

The Fl_Shared_Image_Display will display an Fl_Image. The image can be rotated, and a background color can be set for unfilled space. All scaling and rotations are done as the image is being drawn, so this widget should have little memory overhead.
Notes:

Methods

void Fl_Shared_Image_Display::Fl_Shared_Image_Display(int x, int y, int w, int h, const char *label = 0)

Creates a new Fl_Shared_Image_Display widget and sets some defaults.

void Fl_Shared_Image_Display::~Fl_Shared_Image_Display()

The default destructor.

void Fl_Shared_Image_Display::image(Fl_Image*)

Sets the image to display and redraws if necessary.

void Fl_Shared_Image_Display::bgcolor(Fl_Color)
Fl_Color Fl_Shared_Image_Display::bgcolor()

Set or return the background color displayed around the image. Redraws if necessary. The default is FL_GRAY

void Fl_Shared_Image_Display::fill(int)
int Fl_Shared_Image_Display::fill()

Set or return whether or not the image fills the entire widget, or keeps its original aspect ratio. Redraws if necessary. The default is false

void Fl_Shared_Image_Display::rotate(int)
int Fl_Shared_Image_Display::rotate()

Set or return the rotation applied to the image, redrawing if necessary. Recognized values are from 0 to 8, anything else will result in attempted value, modulo 8, being set. Defaults to no rotation.
(Note that values 1 through 8 will rotate for correct display of images with the same-valued EXIF orientations.)