|
Public Methods |
| | PixelFormatRGBABits (int depth, unsigned int redMask, unsigned int greenMask, unsigned int blueMask, unsigned int alphaMask) |
| 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 | fromRGBAChar (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.
|
| void | shift (unsigned int redMask, unsigned int greenMask, unsigned int blueMask, unsigned int alphaMask, int &redShift, int &greenShift, int &blueShift, int &alphaShift) const |
Public Attributes |
| unsigned int | redMask |
| unsigned int | greenMask |
| unsigned int | blueMask |
| unsigned int | alphaMask |