MHIBitmap Class Reference

#include <mhi.h>

Inheritance diagram for MHIBitmap:

MHBitmapDisplay

List of all members.


Detailed Description

Object for drawing bitmaps.

Definition at line 216 of file 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

MHIContextm_parent
bool m_tiled
QImage m_image
bool m_opaque

Constructor & Destructor Documentation

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

Definition at line 219 of file mhi.h.

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

Definition at line 221 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 1426 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 1445 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 1400 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 1533 of file mhi.cpp.

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

Implements MHBitmapDisplay.

Definition at line 242 of file mhi.h.

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

Implements MHBitmapDisplay.

Definition at line 243 of file mhi.h.


Member Data Documentation

Definition at line 246 of file mhi.h.

Referenced by Draw().

Definition at line 247 of file mhi.h.

Definition at line 248 of file mhi.h.

Referenced by CreateFromMPEG(), CreateFromPNG(), Draw(), GetSize(), IsOpaque(), and ScaleImage().

Definition at line 249 of file mhi.h.

Referenced by CreateFromMPEG(), CreateFromPNG(), and IsOpaque().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5