RGBByte.h File Reference

#include "Allocate.h"
#include "FastFTOL.h"
#include "Vector.h"
#include "Macros.h"

Include dependency graph for RGBByte.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RGBByte
class  RGBAByte
class  YAByte

Defines

#define __RGBBYTE_H
#define MAXCOLOR   255
#define FLOATTOBYTE(flt)   MAX(0,MIN(MAXCOLOR, fast_ftol_unsigned((flt) * MAXCOLOR + .5f)))

Functions

void GammaCorrect (UBYTE *color, float power)


Define Documentation

#define __RGBBYTE_H
 

Definition at line 3 of file RGBByte.h.

#define FLOATTOBYTE flt   )     MAX(0,MIN(MAXCOLOR, fast_ftol_unsigned((flt) * MAXCOLOR + .5f)))
 

Definition at line 25 of file RGBByte.h.

Referenced by YAByte::SetOpacity(), and RGBAByte::SetOpacity().

#define MAXCOLOR   255
 

Definition at line 24 of file RGBByte.h.


Function Documentation

void GammaCorrect UBYTE color,
float  power
[inline]
 

Definition at line 121 of file RGBByte.h.

References fast_round(), MAXCOLOR, and MIN.

Here is the call graph for this function:


This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:46:49 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001