#include <image.h>
Inheritance diagram for fl::PixelFormatRGBAChar:
Public Methods | |
| PixelFormatRGBAChar () | |
| virtual Image | filter (const Image &image) |
| Return an Image in this format. | |
| void | fromGrayChar (const Image &image, Image &result) const |
| void | fromGrayFloat (const Image &image, Image &result) const |
| void | fromGrayDouble (const Image &image, Image &result) const |
| void | fromRGBABits (const Image &image, Image &result) const |
| virtual bool | operator== (const PixelFormat &that) const |
| Checks if this and that describe the same actual format. | |
| virtual unsigned int | getRGBA (void *pixel) const |
| Return value is always assumed to be non-linear sRGB. Same for other RGB methods below. | |
| 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 | setAlpha (void *pixel, unsigned char alpha) const |
| Ignored by default. Formats that actually have an alpha channel must override this method. | |
Static Public Methods | |
| void | shift (unsigned int redMask, unsigned int greenMask, unsigned int blueMask, unsigned int alphaMask, int &redShift, int &greenShift, int &blueShift, int &alphaShift) |
| Shifts are set to move bits from this format to the one indicated by the masks. | |
|
|
|
|
|
Return an Image in this format.
Reimplemented from fl::PixelFormat. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Returns fully opaque by default. PixelFormats that actually have an alpha channel must override this to return correct value.
Reimplemented from fl::PixelFormat. |
|
|
Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.
Implements fl::PixelFormat. |
|
|
Checks if this and that describe the same actual format.
Reimplemented from fl::PixelFormat. |
|
||||||||||||
|
Ignored by default. Formats that actually have an alpha channel must override this method.
Reimplemented from fl::PixelFormat. |
|
||||||||||||
|
Implements fl::PixelFormat. |
|
||||||||||||||||||||||||||||||||||||
|
Shifts are set to move bits from this format to the one indicated by the masks.
|
1.2.18