MythTV
master
|
Object for drawing bitmaps. More...
#include <mhi.h>
Public Member Functions | |
MHIBitmap (MHIContext *parent, bool tiled) | |
virtual | ~MHIBitmap () |
void | CreateFromPNG (const unsigned char *data, int length) override |
Create bitmap from PNG. More... | |
void | CreateFromMPEG (const unsigned char *data, int length) override |
Create bitmap from single I frame MPEG. More... | |
void | CreateFromJPEG (const unsigned char *data, int length) override |
Create bitmap from JPEG. More... | |
void | Draw (int x, int y, QRect rect, bool tiled, bool bUnder) override |
Draw the completed drawing onto the display. More... | |
void | ScaleImage (int newWidth, int newHeight) override |
Scale the bitmap. Only used for image derived from MPEG I-frames. More... | |
QSize | GetSize (void) override |
bool | IsOpaque (void) override |
![]() | |
virtual | ~MHBitmapDisplay () |
Public Attributes | |
MHIContext * | m_parent {nullptr} |
bool | m_tiled |
QImage | m_image |
bool | m_opaque {false} |
MythAVCopy * | m_copyCtx {nullptr} |
Private Member Functions | |
MHIBitmap (const MHIBitmap &)=delete | |
MHIBitmap & | operator= (const MHIBitmap &)=delete |
|
privatedelete |
MHIBitmap::MHIBitmap | ( | MHIContext * | parent, |
bool | tiled | ||
) |
|
overridevirtual |
|
overridevirtual |
Create bitmap from single I frame MPEG.
Implements MHBitmapDisplay.
|
overridevirtual |
Draw the completed drawing onto the display.
x | Horizontal position of the image relative to the screen. |
y | Vertical position of the image relative to the screen. |
rect | Bounding box for the image relative to the screen. |
tiled | Tile the drawing to fit the parent window. |
bUnder | Put the drawing at the behind any other widgets. |
Implements MHBitmapDisplay.
|
overridevirtual |
Scale the bitmap. Only used for image derived from MPEG I-frames.
Implements MHBitmapDisplay.
|
inlineoverridevirtual |
Implements MHBitmapDisplay.
|
inlineoverridevirtual |
Implements MHBitmapDisplay.
MHIContext* MHIBitmap::m_parent {nullptr} |
QImage MHIBitmap::m_image |
Definition at line 307 of file mhi.h.
Referenced by CreateFromJPEG(), CreateFromMPEG(), CreateFromPNG(), Draw(), and ScaleImage().
Definition at line 308 of file mhi.h.
Referenced by CreateFromJPEG(), CreateFromMPEG(), and CreateFromPNG().
MythAVCopy* MHIBitmap::m_copyCtx {nullptr} |
Definition at line 309 of file mhi.h.
Referenced by CreateFromMPEG(), and ~MHIBitmap().