Object for drawing bitmaps. More...
#include <mhi.h>
Public Member Functions | |
| MHIBitmap (MHIContext *parent, bool tiled) | |
| virtual | ~MHIBitmap () |
| virtual void | CreateFromPNG (const unsigned char *data, int length) |
| Create bitmap from PNG. | |
| virtual void | CreateFromMPEG (const unsigned char *data, int length) |
| Create bitmap from single I frame MPEG. | |
| virtual void | Draw (int x, int y, QRect rect, bool tiled) |
| Draw the completed drawing onto the display. | |
| virtual void | ScaleImage (int newWidth, int newHeight) |
| Scale the bitmap. Only used for image derived from MPEG I-frames. | |
| virtual QSize | GetSize (void) |
| virtual bool | IsOpaque (void) |
Public Attributes | |
| MHIContext * | m_parent |
| bool | m_tiled |
| QImage | m_image |
| bool | m_opaque |
Object for drawing bitmaps.
Definition at line 221 of file mhi.h.
| MHIBitmap::MHIBitmap | ( | MHIContext * | parent, | |
| bool | tiled | |||
| ) | [inline] |
| void MHIBitmap::CreateFromPNG | ( | const unsigned char * | data, | |
| int | length | |||
| ) | [virtual] |
| void MHIBitmap::CreateFromMPEG | ( | const unsigned char * | data, | |
| int | length | |||
| ) | [virtual] |
Create bitmap from single I frame MPEG.
Implements MHBitmapDisplay.
| MHIBitmap::Draw | ( | int | x, | |
| int | y, | |||
| QRect | rect, | |||
| bool | tiled | |||
| ) | [virtual] |
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. |
Implements MHBitmapDisplay.
| void MHIBitmap::ScaleImage | ( | int | newWidth, | |
| int | newHeight | |||
| ) | [virtual] |
Scale the bitmap. Only used for image derived from MPEG I-frames.
Implements MHBitmapDisplay.
| virtual QSize MHIBitmap::GetSize | ( | void | ) | [inline, virtual] |
Implements MHBitmapDisplay.
| virtual bool MHIBitmap::IsOpaque | ( | void | ) | [inline, virtual] |
Implements MHBitmapDisplay.
| QImage MHIBitmap::m_image |
Definition at line 253 of file mhi.h.
Referenced by CreateFromMPEG(), CreateFromPNG(), Draw(), GetSize(), IsOpaque(), and ScaleImage().
Definition at line 254 of file mhi.h.
Referenced by CreateFromMPEG(), CreateFromPNG(), and IsOpaque().
1.6.3