#include <cpixelformat_indexed8.h>
Public Member Functions | |
| CPixelFormat_Indexed8 (CBitmap *bitmap) | |
| Default ctor. | |
| ~CPixelFormat_Indexed8 () | |
| Default dtor. | |
| void | getPixel (RGBPIXEL &pixel, uint32_t x, uint32_t y) |
| Get pixel at coordinates x, y. | |
| void | setPixel (const RGBPIXEL &pixel, uint32_t x, uint32_t y) |
| Modifies pixel at coordinates x, y. | |
| uint32_t | getBitCount () |
| returns the bitcount needed for indexing the color tabel. | |
| void | getMaxColor (RGBPIXEL &pixel) |
| Get maximum values for RGB pixel. | |
On error CPixelFormat::PixelFormatError is thrown.
| CPixelFormat_Indexed8::CPixelFormat_Indexed8 | ( | CBitmap * | bitmap | ) | [inline] |
Default ctor.
| bitmap | pointer to CBitmap instance |
| none |
| CPixelFormat_Indexed8::~CPixelFormat_Indexed8 | ( | ) | [inline] |
Default dtor.
| - |
| none |
| void CPixelFormat_Indexed8::getPixel | ( | RGBPIXEL & | pixel, | |
| uint32_t | x, | |||
| uint32_t | y | |||
| ) |
Get pixel at coordinates x, y.
| pixel | reference to pixel data | |
| x | x-coordinate | |
| y | y-coordinate |
| PixelFormatError |
| void CPixelFormat_Indexed8::setPixel | ( | const RGBPIXEL & | pixel, | |
| uint32_t | x, | |||
| uint32_t | y | |||
| ) |
Modifies pixel at coordinates x, y.
| pixel | reference to new pixel data | |
| x | x-coordinate | |
| y | y-coordinate |
| PixelFormatError |
| uint32_t CPixelFormat_Indexed8::getBitCount | ( | ) | [inline, virtual] |
returns the bitcount needed for indexing the color tabel.
| - |
| none |
Implements CPixelFormat.
| void CPixelFormat_Indexed8::getMaxColor | ( | RGBPIXEL & | pixel | ) | [inline] |
Get maximum values for RGB pixel.
| pixel | reference to pixel struct |
| none |
1.5.3