Object for drawing bitmaps.
More...
#include <libmythtv/mheg/mhi.h>
|
| | 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 |
| |
| virtual void | Draw (int x, int y, QRect rect, bool tiled, bool bUnder)=0 |
| |
| virtual void | CreateFromPNG (const unsigned char *data, int length)=0 |
| |
| virtual void | CreateFromMPEG (const unsigned char *data, int length)=0 |
| |
| virtual void | CreateFromJPEG (const unsigned char *data, int length)=0 |
| |
| virtual void | ScaleImage (int newWidth, int newHeight)=0 |
| |
| virtual QSize | GetSize ()=0 |
| |
| virtual bool | IsOpaque ()=0 |
| |
Object for drawing bitmaps.
Definition at line 267 of file mhi.h.
◆ MHIBitmap() [1/2]
◆ ~MHIBitmap()
| MHIBitmap::~MHIBitmap |
( |
| ) |
|
|
override |
◆ MHIBitmap() [2/2]
◆ CreateFromJPEG()
| void MHIBitmap::CreateFromJPEG |
( |
const unsigned char * |
data, |
|
|
int |
length |
|
) |
| |
|
overridevirtual |
◆ CreateFromMPEG()
| void MHIBitmap::CreateFromMPEG |
( |
const unsigned char * |
data, |
|
|
int |
length |
|
) |
| |
|
overridevirtual |
◆ CreateFromPNG()
| void MHIBitmap::CreateFromPNG |
( |
const unsigned char * |
data, |
|
|
int |
length |
|
) |
| |
|
overridevirtual |
◆ Draw()
| void MHIBitmap::Draw |
( |
int |
x, |
|
|
int |
y, |
|
|
QRect |
rect, |
|
|
bool |
tiled, |
|
|
bool |
bUnder |
|
) |
| |
|
overridevirtual |
Draw the completed drawing onto the display.
- Parameters
-
| 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.
Definition at line 1802 of file mhi.cpp.
◆ GetSize()
| QSize MHIBitmap::GetSize |
( |
void |
| ) |
|
|
inlineoverridevirtual |
◆ IsOpaque()
| bool MHIBitmap::IsOpaque |
( |
void |
| ) |
|
|
inlineoverridevirtual |
◆ operator=()
◆ ScaleImage()
| void MHIBitmap::ScaleImage |
( |
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
|
overridevirtual |
Scale the bitmap. Only used for image derived from MPEG I-frames.
Implements MHBitmapDisplay.
Definition at line 1968 of file mhi.cpp.
◆ m_copyCtx
◆ m_image
| QImage MHIBitmap::m_image |
◆ m_opaque
◆ m_parent
◆ m_tiled
The documentation for this class was generated from the following files:
- mythtv/libs/libmythtv/mheg/mhi.h
- mythtv/libs/libmythtv/mheg/mhi.cpp