MythImage Class Reference

#include <mythimage.h>

Inheritance diagram for MythImage:

MythQtImage

List of all members.


Detailed Description

Definition at line 12 of file mythimage.h.


Public Member Functions

 MythImage (MythPainter *parent)
void UpRef (void)
bool DownRef (void)
virtual void SetChanged (bool change=true)
bool IsChanged ()
void Assign (const QImage &img)
void Assign (const QPixmap &pix)
bool Load (const QString &filename)
void Resize (const QSize &newSize)

Static Public Member Functions

static MythImageFromQImage (QImage **img)
static MythImageGradient (const QSize &size, const QColor &begin, const QColor &end, uint alpha)
 Create a gradient image.

Protected Member Functions

virtual ~MythImage ()

Static Protected Member Functions

static void MakeGradient (QImage &image, const QColor &begin, const QColor &end, int alpha)

Protected Attributes

bool m_Changed
MythPainterm_Parent
int m_RefCount
bool m_isGradient
QColor m_gradBegin
QColor m_gradEnd
int m_gradAlpha

Constructor & Destructor Documentation

MythImage::MythImage ( MythPainter parent  ) 

Definition at line 11 of file mythimage.cpp.

MythImage::~MythImage (  )  [protected, virtual]

Definition at line 23 of file mythimage.cpp.


Member Function Documentation

void MythImage::UpRef ( void   ) 

bool MythImage::DownRef ( void   ) 

virtual void MythImage::SetChanged ( bool  change = true  )  [inline, virtual]

bool MythImage::IsChanged (  )  [inline]

Definition at line 21 of file mythimage.h.

Referenced by MythOpenGLPainter::BindTextureFromCache().

void MythImage::Assign ( const QImage &  img  ) 

void MythImage::Assign ( const QPixmap &  pix  ) 

Definition at line 51 of file mythimage.cpp.

MythImage * MythImage::FromQImage ( QImage **  img  )  [static]

bool MythImage::Load ( const QString &  filename  ) 

Definition at line 83 of file mythimage.cpp.

Referenced by MythUIImage::Load(), and MythUIButton::LoadImage().

void MythImage::Resize ( const QSize &  newSize  ) 

Definition at line 56 of file mythimage.cpp.

Referenced by MythListButton::Init().

MythImage * MythImage::Gradient ( const QSize &  size,
const QColor &  begin,
const QColor &  end,
uint  alpha 
) [static]

Create a gradient image.

Parameters:
size The size of the image.
begin The beginning colour.
end The ending colour.
Returns:
A MythImage filled with a gradient.

Definition at line 133 of file mythimage.cpp.

Referenced by MythUIButton::LoadImage(), and MythListButton::LoadPixmap().

void MythImage::MakeGradient ( QImage &  image,
const QColor &  begin,
const QColor &  end,
int  alpha 
) [static, protected]

Definition at line 96 of file mythimage.cpp.

Referenced by Gradient(), and Resize().


Member Data Documentation

Definition at line 47 of file mythimage.h.

Referenced by IsChanged(), MythImage(), and SetChanged().

Definition at line 48 of file mythimage.h.

Referenced by MythImage(), and ~MythImage().

int MythImage::m_RefCount [protected]

Definition at line 50 of file mythimage.h.

Referenced by DownRef(), MythImage(), and UpRef().

Definition at line 52 of file mythimage.h.

Referenced by Gradient(), MythImage(), and Resize().

QColor MythImage::m_gradBegin [protected]

Definition at line 53 of file mythimage.h.

Referenced by Gradient(), and Resize().

QColor MythImage::m_gradEnd [protected]

Definition at line 54 of file mythimage.h.

Referenced by Gradient(), and Resize().

int MythImage::m_gradAlpha [protected]

Definition at line 55 of file mythimage.h.

Referenced by Gradient(), and Resize().


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

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