34 , drawingArea_{drawing_area}
38 auto iconSet = Gtk::IconSet::lookup_default (Gtk::StockID(
"panel_play"));
39 drawingArea_.set(iconSet, Gtk::IconSize(Gtk::ICON_SIZE_DIALOG));
40 INFO(
stage,
"Using Pixbuf with RGB output within Gtk::Image");
60 orgX, orgY, destWidth, destHeight);
62 auto* imageData =
static_cast<const guint8*
> (image);
63 auto imgBuf = Gdk::Pixbuf::create_from_data (imageData
74 imgBuf = imgBuf->scale_simple (destWidth, destHeight, Gdk::INTERP_NEAREST);
A Displayer is a class which is responsible for rendering an image in some way (ie: Xvideo,...
void calculateVideoLayout(int widgetWidth, int widgetHeight, int &imgOrg_x, int &imgOrg_y, int &imgWidth, int &imgHeight)
Calculates the coordinates for placing a video image inside a widget.
bool usable() override
Indicates if this object can be used to render images on the running system.
PixbufDisplayer(Gtk::Image &drawing_area, uint width, uint height)
Constructor.
void put(void *const image)
Put an image of a given width and height with the expected input format (as indicated by the format m...
Gtk::Image & drawingArea_
A set of basic GTK includes for the UI.
Lumiera GTK UI implementation root.
Display video as bitmap image with the UI toolkit.