#include <osd.h>
Definition at line 419 of file osd.h.
◆ cImage() [1/3]
◆ cImage() [2/3]
| cImage::cImage |
( |
const cImage & | Image | ) |
|
◆ cImage() [3/3]
| 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 1117 of file osd.c.
References Data(), data, MALLOC, Size(), and size.
◆ ~cImage()
◆ Clear()
| void cImage::Clear |
( |
void | | ) |
|
Clears the image data by setting all pixels to be fully transparent.
Definition at line 1131 of file osd.c.
References data, Height(), and Width().
◆ Data()
| const tColor * cImage::Data |
( |
void | | ) |
const |
|
inline |
◆ Fill()
| void cImage::Fill |
( |
tColor | Color | ) |
|
◆ GetPixel()
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 438 of file osd.h.
References data, size, cPoint::X(), and cPoint::Y().
◆ Height()
| int cImage::Height |
( |
void | | ) |
const |
|
inline |
◆ SetPixel()
| void cImage::SetPixel |
( |
const cPoint & | Point, |
|
|
tColor | Color ) |
|
inline |
◆ Size()
| const cSize & cImage::Size |
( |
void | | ) |
const |
|
inline |
◆ Width()
| int cImage::Width |
( |
void | | ) |
const |
|
inline |
◆ data
◆ size
The documentation for this class was generated from the following files: