MHIBitmap Class Reference

Object for drawing bitmaps. More...

#include <mhi.h>

Inheritance diagram for MHIBitmap:
MHBitmapDisplay

List of all members.

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

MHIContextm_parent
bool m_tiled
QImage m_image
bool m_opaque

Detailed Description

Object for drawing bitmaps.

Definition at line 221 of file mhi.h.


Constructor & Destructor Documentation

MHIBitmap::MHIBitmap ( MHIContext parent,
bool  tiled 
) [inline]

Definition at line 224 of file mhi.h.

virtual MHIBitmap::~MHIBitmap (  )  [inline, virtual]

Definition at line 226 of file mhi.h.


Member Function Documentation

void MHIBitmap::CreateFromPNG ( const unsigned char *  data,
int  length 
) [virtual]

Create bitmap from PNG.

Implements MHBitmapDisplay.

Definition at line 1483 of file mhi.cpp.

void MHIBitmap::CreateFromMPEG ( const unsigned char *  data,
int  length 
) [virtual]

Create bitmap from single I frame MPEG.

Implements MHBitmapDisplay.

Definition at line 1502 of file mhi.cpp.

MHIBitmap::Draw ( int  x,
int  y,
QRect  rect,
bool  tiled 
) [virtual]

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.

Implements MHBitmapDisplay.

Definition at line 1456 of file mhi.cpp.

void MHIBitmap::ScaleImage ( int  newWidth,
int  newHeight 
) [virtual]

Scale the bitmap. Only used for image derived from MPEG I-frames.

Implements MHBitmapDisplay.

Definition at line 1593 of file mhi.cpp.

virtual QSize MHIBitmap::GetSize ( void   )  [inline, virtual]

Implements MHBitmapDisplay.

Definition at line 247 of file mhi.h.

virtual bool MHIBitmap::IsOpaque ( void   )  [inline, virtual]

Implements MHBitmapDisplay.

Definition at line 248 of file mhi.h.


Member Data Documentation

Definition at line 251 of file mhi.h.

Referenced by Draw().

Definition at line 252 of file mhi.h.

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri May 25 06:42:08 2012 for MythTV by  doxygen 1.6.3