vdr  1.7.27
Public Member Functions | Private Attributes
cImage Class Reference

#include <osd.h>

List of all members.

Public Member Functions

 cImage (void)
 cImage (const cImage &Image)
 cImage (const cSize &Size, const tColor *Data=NULL)
virtual ~cImage ()
const cSizeSize (void) const
int Width (void) const
int Height (void) const
const tColorData (void) const
tColor GetPixel (const cPoint &Point) const
void SetPixel (const cPoint &Point, tColor Color)
void Clear (void)
void Fill (tColor Color)
 cImage (void)
 cImage (const cImage &Image)
 cImage (const cSize &Size, const tColor *Data=NULL)
virtual ~cImage ()
const cSizeSize (void) const
int Width (void) const
int Height (void) const
const tColorData (void) const
tColor GetPixel (const cPoint &Point) const
void SetPixel (const cPoint &Point, tColor Color)
void Clear (void)
void Fill (tColor Color)

Private Attributes

cSize size
tColordata

Detailed Description

Definition at line 405 of file include/vdr/osd.h.


Constructor & Destructor Documentation

cImage::cImage ( void  )

Definition at line 1069 of file osd.c.

References data.

cImage::cImage ( const cImage Image)

Definition at line 1074 of file osd.c.

References data, Data(), cSize::Height(), MALLOC, size, Size(), and cSize::Width().

cImage::cImage ( const cSize Size,
const tColor Data = NULL 
)

Creates an image with the given Size and allocates the necessary memory to copy the pixels pointed to by Data, which is a sequence of (Size.Width() * Size.Height()) tColor values.

If Data is NULL, the allocated memory is not initialized. The alpha value of the Image's pixels is taken into account, so it has to be greater than 0 for the image to be visible.

Definition at line 1082 of file osd.c.

References data, cSize::Height(), MALLOC, size, Size(), and cSize::Width().

cImage::~cImage ( ) [virtual]

Definition at line 1091 of file osd.c.

References data.

cImage::cImage ( void  )
cImage::cImage ( const cImage Image)
cImage::cImage ( const cSize Size,
const tColor Data = NULL 
)

Creates an image with the given Size and allocates the necessary memory to copy the pixels pointed to by Data, which is a sequence of (Size.Width() * Size.Height()) tColor values.

If Data is NULL, the allocated memory is not initialized. The alpha value of the Image's pixels is taken into account, so it has to be greater than 0 for the image to be visible.

virtual cImage::~cImage ( ) [virtual]

Member Function Documentation

void cImage::Clear ( void  )

Clears the image data by setting all pixels to be fully transparent.

Definition at line 1096 of file osd.c.

References data, Height(), and Width().

void cImage::Clear ( void  )

Clears the image data by setting all pixels to be fully transparent.

const tColor* cImage::Data ( void  ) const [inline]

Definition at line 423 of file osd.h.

References data.

const tColor* cImage::Data ( void  ) const [inline]

Definition at line 423 of file include/vdr/osd.h.

References data.

Referenced by cImage(), and cPixmapMemory::DrawImage().

void cImage::Fill ( tColor  Color)

Fills the image data with the given Color.

Definition at line 1101 of file osd.c.

References data, Height(), and Width().

void cImage::Fill ( tColor  Color)

Fills the image data with the given Color.

tColor cImage::GetPixel ( const cPoint Point) const [inline]

Returns the pixel value at the given Point.

For performance reasons there is no range check here, so the caller must make sure that the Point is within the images size.

Definition at line 424 of file include/vdr/osd.h.

References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().

tColor cImage::GetPixel ( const cPoint Point) const [inline]

Returns the pixel value at the given Point.

For performance reasons there is no range check here, so the caller must make sure that the Point is within the images size.

Definition at line 424 of file osd.h.

References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().

int cImage::Height ( void  ) const [inline]

Definition at line 422 of file osd.h.

References cSize::Height(), and size.

int cImage::Height ( void  ) const [inline]

Definition at line 422 of file include/vdr/osd.h.

References cSize::Height(), and size.

Referenced by Clear(), and Fill().

void cImage::SetPixel ( const cPoint Point,
tColor  Color 
) [inline]

Sets the pixel at the given Point to Color.

For performance reasons there is no range check here, so the caller must make sure that the Point is within the images size.

Definition at line 428 of file include/vdr/osd.h.

References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().

Referenced by cTrueColorDemo::Action().

void cImage::SetPixel ( const cPoint Point,
tColor  Color 
) [inline]

Sets the pixel at the given Point to Color.

For performance reasons there is no range check here, so the caller must make sure that the Point is within the images size.

Definition at line 428 of file osd.h.

References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().

const cSize& cImage::Size ( void  ) const [inline]

Definition at line 420 of file osd.h.

References size.

const cSize& cImage::Size ( void  ) const [inline]

Definition at line 420 of file include/vdr/osd.h.

References size.

Referenced by cImage(), and cPixmapMemory::DrawImage().

int cImage::Width ( void  ) const [inline]

Definition at line 421 of file osd.h.

References size, and cSize::Width().

int cImage::Width ( void  ) const [inline]

Definition at line 421 of file include/vdr/osd.h.

References size, and cSize::Width().

Referenced by Clear(), and Fill().


Member Data Documentation

tColor * cImage::data [private]

Definition at line 408 of file include/vdr/osd.h.

Referenced by cImage(), Clear(), Data(), Fill(), GetPixel(), SetPixel(), and ~cImage().

cSize cImage::size [private]

Definition at line 407 of file include/vdr/osd.h.

Referenced by cImage(), GetPixel(), Height(), SetPixel(), Size(), and Width().


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