MythTV
master
|
Object for drawing bitmaps. More...
#include <mhi.h>
Public Member Functions | |
MHIBitmap (MHIContext *parent, bool tiled) | |
~MHIBitmap () override | |
MHIBitmap (const MHIBitmap &)=delete | |
MHIBitmap & | operator= (const MHIBitmap &)=delete |
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 ()=default |
Public Attributes | |
MHIContext * | m_parent {nullptr} |
bool | m_tiled |
QImage | m_image |
bool | m_opaque {false} |
MythAVCopy * | m_copyCtx {nullptr} |
MHIBitmap::MHIBitmap | ( | MHIContext * | parent, |
bool | tiled | ||
) |
|
delete |
|
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(), GetSize(), IsOpaque(), and ScaleImage().
Definition at line 308 of file mhi.h.
Referenced by CreateFromJPEG(), CreateFromMPEG(), CreateFromPNG(), and IsOpaque().
MythAVCopy* MHIBitmap::m_copyCtx {nullptr} |
Definition at line 309 of file mhi.h.
Referenced by CreateFromMPEG(), and ~MHIBitmap().