#include <image.h>
Inheritance diagram for fl::PixelFormatRGBAFloat:
Public Methods | |
| PixelFormatRGBAFloat () | |
| virtual unsigned int | getRGBA (void *pixel) const |
| Return value is always assumed to be non-linear sRGB. Same for other RGB methods below. | |
| virtual void | getRGBA (void *pixel, float values[]) const |
| "values" must have at least four elements. Each returned value is in [0,1]. | |
| virtual unsigned char | getAlpha (void *pixel) const |
| Returns fully opaque by default. PixelFormats that actually have an alpha channel must override this to return correct value. | |
| virtual void | setRGBA (void *pixel, unsigned int rgba) const |
| virtual void | setRGBA (void *pixel, float values[]) const |
| Each value must be in [0,1]. Values outside this range will be clamped and modified directly in the array. | |
| virtual void | setAlpha (void *pixel, unsigned char alpha) const |
| Ignored by default. Formats that actually have an alpha channel must override this method. | |
|
|
|
|
|
Returns fully opaque by default. PixelFormats that actually have an alpha channel must override this to return correct value.
Reimplemented from fl::PixelFormat. |
|
||||||||||||
|
"values" must have at least four elements. Each returned value is in [0,1].
Reimplemented from fl::PixelFormat. |
|
|
Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.
Implements fl::PixelFormat. |
|
||||||||||||
|
Ignored by default. Formats that actually have an alpha channel must override this method.
Reimplemented from fl::PixelFormat. |
|
||||||||||||
|
Each value must be in [0,1]. Values outside this range will be clamped and modified directly in the array.
Reimplemented from fl::PixelFormat. |
|
||||||||||||
|
Implements fl::PixelFormat. |
1.2.18