Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::PixelFormatRGBABits Class Reference

#include <image.h>

Inheritance diagram for fl::PixelFormatRGBABits:

fl::PixelFormat fl::Filter List of all members.

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

Constructor & Destructor Documentation

PixelFormatRGBABits::PixelFormatRGBABits int    depth,
unsigned int    redMask,
unsigned int    greenMask,
unsigned int    blueMask,
unsigned int    alphaMask
 


Member Function Documentation

Image PixelFormatRGBABits::filter const Image   image [virtual]
 

Return an Image in this format.

Reimplemented from fl::PixelFormat.

void PixelFormatRGBABits::fromGrayChar const Image   image,
Image   result
const
 

void PixelFormatRGBABits::fromGrayDouble const Image   image,
Image   result
const
 

void PixelFormatRGBABits::fromGrayFloat const Image   image,
Image   result
const
 

void PixelFormatRGBABits::fromRGBABits const Image   image,
Image   result
const
 

void PixelFormatRGBABits::fromRGBAChar const Image   image,
Image   result
const
 

unsigned char PixelFormatRGBABits::getAlpha void *    pixel const [virtual]
 

Returns fully opaque by default. PixelFormats that actually have an alpha channel must override this to return correct value.

Reimplemented from fl::PixelFormat.

unsigned int PixelFormatRGBABits::getRGBA void *    pixel const [virtual]
 

Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.

Implements fl::PixelFormat.

bool PixelFormatRGBABits::operator== const PixelFormat   that const [virtual]
 

Checks if this and that describe the same actual format.

Reimplemented from fl::PixelFormat.

void PixelFormatRGBABits::setAlpha void *    pixel,
unsigned char    alpha
const [virtual]
 

Ignored by default. Formats that actually have an alpha channel must override this method.

Reimplemented from fl::PixelFormat.

void PixelFormatRGBABits::setRGBA void *    pixel,
unsigned int    rgba
const [virtual]
 

Implements fl::PixelFormat.

void PixelFormatRGBABits::shift unsigned int    redMask,
unsigned int    greenMask,
unsigned int    blueMask,
unsigned int    alphaMask,
int &    redShift,
int &    greenShift,
int &    blueShift,
int &    alphaShift
const
 


Member Data Documentation

unsigned int fl::PixelFormatRGBABits::alphaMask
 

unsigned int fl::PixelFormatRGBABits::blueMask
 

unsigned int fl::PixelFormatRGBABits::greenMask
 

unsigned int fl::PixelFormatRGBABits::redMask
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18