#include <cpixelformat_bgr24.h>
Public Member Functions | |
| CPixelFormat_BGR24 (CBitmap *bitmap) | |
| Default ctor. | |
| ~CPixelFormat_BGR24 () | |
| 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 color bitcount supported by this class | |
| void | getMaxColor (RGBPIXEL &pixel) |
| Get maximum values for RGB pixel. | |
On error CPixelFormat::PixelFormatError is thrown.
| CPixelFormat_BGR24::CPixelFormat_BGR24 | ( | CBitmap * | bitmap | ) | [inline] |
Default ctor.
| bitmap | pointer to CBitmap instance |
| none |
| CPixelFormat_BGR24::~CPixelFormat_BGR24 | ( | ) | [inline] |
Default dtor.
| - |
| none |
| void CPixelFormat_BGR24::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_BGR24::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_BGR24::getBitCount | ( | ) | [inline, virtual] |
returns color bitcount supported by this class
| - |
| none |
Implements CPixelFormat.
| void CPixelFormat_BGR24::getMaxColor | ( | RGBPIXEL & | pixel | ) | [inline] |
Get maximum values for RGB pixel.
| pixel | reference to pixel struct |
| none |
1.5.3