CCIMXDesktop
 
Loading...
Searching...
No Matches
CameraDisplayWidget Class Reference

The CameraDisplayWidget class A QWidget-derived class that displays camera frames. It allows setting the current frame as a QImage and retrieving the currently displayed frame as a QPixmap. More...

#include <CameraDisplayWidget.h>

Inheritance diagram for CameraDisplayWidget:

Public Member Functions

 CameraDisplayWidget (QWidget *parent=nullptr)
 Constructor with optional parent widget.
 
 ~CameraDisplayWidget ()
 Destructor. Cleans up the UI resources.
 
void setCurrentFrame (const QImage &image)
 setCurrentFrame Sets the current frame image to be displayed.
 
QPixmap current_captures () const
 current_captures Retrieves the currently displayed frame as a QPixmap.
 

Detailed Description

The CameraDisplayWidget class A QWidget-derived class that displays camera frames. It allows setting the current frame as a QImage and retrieving the currently displayed frame as a QPixmap.

Constructor & Destructor Documentation

◆ CameraDisplayWidget()

CameraDisplayWidget::CameraDisplayWidget ( QWidget *  parent = nullptr)
explicit

Constructor with optional parent widget.

Parameters
parentThe parent QWidget, default is nullptr.

Member Function Documentation

◆ current_captures()

QPixmap CameraDisplayWidget::current_captures ( ) const

current_captures Retrieves the currently displayed frame as a QPixmap.

Returns
The current frame as QPixmap.

◆ setCurrentFrame()

void CameraDisplayWidget::setCurrentFrame ( const QImage &  image)

setCurrentFrame Sets the current frame image to be displayed.

Parameters
imageThe QImage frame to display.

The documentation for this class was generated from the following files: