vdr
1.7.31
|
#include <osd.h>
Public Member Functions | |
cImage (void) | |
cImage (const cImage &Image) | |
cImage (const cSize &Size, const tColor *Data=NULL) | |
virtual | ~cImage () |
const cSize & | Size (void) const |
int | Width (void) const |
int | Height (void) const |
const tColor * | Data (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 cSize & | Size (void) const |
int | Width (void) const |
int | Height (void) const |
const tColor * | Data (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 |
tColor * | data |
Definition at line 415 of file include/vdr/osd.h.
cImage::cImage | ( | const cImage & | Image | ) |
Definition at line 1088 of file osd.c.
References data, Data(), cSize::Height(), MALLOC, size, Size(), and cSize::Width().
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 1096 of file osd.c.
References data, cSize::Height(), MALLOC, size, Size(), and cSize::Width().
cImage::cImage | ( | void | ) |
cImage::cImage | ( | const cImage & | Image | ) |
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 |
void cImage::Clear | ( | void | ) |
void cImage::Clear | ( | void | ) |
Clears the image data by setting all pixels to be fully transparent.
|
inline |
|
inline |
Definition at line 433 of file include/vdr/osd.h.
References data.
Referenced by cImage(), and cPixmapMemory::DrawImage().
void cImage::Fill | ( | tColor | Color | ) |
void cImage::Fill | ( | tColor | Color | ) |
Fills the image data with the given Color.
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 434 of file include/vdr/osd.h.
References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().
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 434 of file osd.h.
References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().
|
inline |
Definition at line 432 of file osd.h.
References cSize::Height(), and size.
|
inline |
Definition at line 432 of file include/vdr/osd.h.
References cSize::Height(), and size.
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 438 of file include/vdr/osd.h.
References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().
Referenced by cTrueColorDemo::Action().
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 438 of file osd.h.
References data, size, cSize::Width(), cPoint::X(), and cPoint::Y().
|
inline |
|
inline |
Definition at line 430 of file include/vdr/osd.h.
References size.
Referenced by cImage(), and cPixmapMemory::DrawImage().
|
inline |
Definition at line 431 of file osd.h.
References size, and cSize::Width().
|
inline |
Definition at line 431 of file include/vdr/osd.h.
References size, and cSize::Width().
|
private |
Definition at line 418 of file include/vdr/osd.h.
Referenced by cImage(), Clear(), Data(), Fill(), GetPixel(), SetPixel(), and ~cImage().
|
private |
Definition at line 417 of file include/vdr/osd.h.
Referenced by cImage(), GetPixel(), Height(), SetPixel(), Size(), and Width().