RGBByte Class Reference

#include <RGBByte.h>

List of all members.

Public Member Functions

 RGBByte ()
 RGBByte (UBYTE pred, UBYTE pgreen, UBYTE pblue)
 RGBByte (COLORREF c)
 RGBByte (const RGBFloat &color)
void * operator new (size_t size)
void operator delete (void *ptr)
RGBByteoperator+= (const RGBByte &)
RGBByteoperator-= (const RGBByte &)
RGBByteoperator *= (const float)
RGBByte operator+ (const RGBByte &other)
 operator COLORREF ()
RGBByteoperator= (const RGBByte &other)
RGBByteoperator/= (float scale)
RGBFloat GetFactoredRGBFloat () const
RGBFloat GetNormalizedRGBFloat () const
UBYTE Red () const
UBYTE Green () const
UBYTE Blue () const
void Set (UBYTE pred, UBYTE pgreen, UBYTE pblue)
void Set (UBYTE value)
void SetRed (UBYTE red)
void SetGreen (UBYTE green)
void SetBlue (UBYTE blue)
RGBByte GammaCorrect (float power)
RGBFloat Get () const
void Set (const RGBFloat &)
float GetLuminance ()
BOOL CheckOffBound (float lobound, float hibound)

Public Attributes

UBYTE m_blue
UBYTE m_green
UBYTE m_red


Detailed Description

Definition at line 30 of file RGBByte.h.


Constructor & Destructor Documentation

RGBByte::RGBByte  )  [inline]
 

Definition at line 37 of file RGBByte.h.

References m_blue, m_green, and m_red.

Referenced by GammaCorrect().

RGBByte::RGBByte UBYTE  pred,
UBYTE  pgreen,
UBYTE  pblue
[inline]
 

Definition at line 38 of file RGBByte.h.

References m_blue, m_green, and m_red.

RGBByte::RGBByte COLORREF  c  )  [inline]
 

Definition at line 39 of file RGBByte.h.

References m_blue, m_green, and m_red.

RGBByte::RGBByte const RGBFloat color  ) 
 


Member Function Documentation

UBYTE RGBByte::Blue  )  const [inline]
 

Definition at line 62 of file RGBByte.h.

References m_blue.

Referenced by RGBFloat::RGBFloat(), and YAFloat::YAFloat().

BOOL RGBByte::CheckOffBound float  lobound,
float  hibound
[inline]
 

Definition at line 76 of file RGBByte.h.

References FALSE.

RGBByte RGBByte::GammaCorrect float  power  )  [inline]
 

Definition at line 128 of file RGBByte.h.

References fast_round(), m_blue, m_green, m_red, MAXCOLOR, MIN, and RGBByte().

Referenced by RGBAByte::GammaCorrect().

Here is the call graph for this function:

RGBFloat RGBByte::Get  )  const
 

RGBFloat RGBByte::GetFactoredRGBFloat  )  const
 

float RGBByte::GetLuminance  )  [inline]
 

Definition at line 74 of file RGBByte.h.

References m_blue, m_green, and m_red.

Referenced by RGBAByte::GetLuminance().

RGBFloat RGBByte::GetNormalizedRGBFloat  )  const
 

UBYTE RGBByte::Green  )  const [inline]
 

Definition at line 61 of file RGBByte.h.

References m_green.

Referenced by RGBFloat::RGBFloat(), and YAFloat::YAFloat().

RGBByte & RGBByte::operator *= const   float  )  [inline]
 

Definition at line 113 of file RGBByte.h.

References m_blue, m_green, and m_red.

RGBByte::operator COLORREF  )  [inline]
 

Definition at line 53 of file RGBByte.h.

References m_blue, m_green, and m_red.

void RGBByte::operator delete void *  ptr  )  [inline]
 

Definition at line 47 of file RGBByte.h.

References FreeBitmap().

Here is the call graph for this function:

void* RGBByte::operator new size_t  size  )  [inline]
 

Definition at line 45 of file RGBByte.h.

References AllocBitmap().

Here is the call graph for this function:

RGBByte RGBByte::operator+ const RGBByte other  )  [inline]
 

Definition at line 97 of file RGBByte.h.

References m_blue, m_green, and m_red.

RGBByte & RGBByte::operator+= const RGBByte  )  [inline]
 

Definition at line 79 of file RGBByte.h.

References m_blue, m_green, m_red, and MAXCOLOR.

RGBByte & RGBByte::operator-= const RGBByte  )  [inline]
 

Definition at line 105 of file RGBByte.h.

References m_blue, m_green, and m_red.

RGBByte& RGBByte::operator/= float  scale  )  [inline]
 

Definition at line 55 of file RGBByte.h.

RGBByte& RGBByte::operator= const RGBByte other  )  [inline]
 

Definition at line 54 of file RGBByte.h.

References m_blue, m_green, and m_red.

UBYTE RGBByte::Red  )  const [inline]
 

Definition at line 60 of file RGBByte.h.

References m_red.

Referenced by RGBFloat::RGBFloat(), and YAFloat::YAFloat().

void RGBByte::Set const RGBFloat  ) 
 

void RGBByte::Set UBYTE  value  )  [inline]
 

Definition at line 65 of file RGBByte.h.

References m_blue, m_green, and m_red.

void RGBByte::Set UBYTE  pred,
UBYTE  pgreen,
UBYTE  pblue
[inline]
 

Definition at line 64 of file RGBByte.h.

References m_blue, m_green, and m_red.

Referenced by RGBAByte::RGBAByte(), and RGBAByte::Set().

void RGBByte::SetBlue UBYTE  blue  )  [inline]
 

Definition at line 68 of file RGBByte.h.

References m_blue.

Referenced by RGBAByte::SetBlue().

void RGBByte::SetGreen UBYTE  green  )  [inline]
 

Definition at line 67 of file RGBByte.h.

References m_green.

Referenced by RGBAByte::SetGreen().

void RGBByte::SetRed UBYTE  red  )  [inline]
 

Definition at line 66 of file RGBByte.h.

References m_red.

Referenced by RGBAByte::SetRed().


Member Data Documentation

UBYTE RGBByte::m_blue
 

Definition at line 35 of file RGBByte.h.

Referenced by RGBAByte::Blue(), Blue(), GammaCorrect(), GetLuminance(), operator *=(), operator COLORREF(), operator+(), operator+=(), operator-=(), operator=(), RGBByte(), Set(), and SetBlue().

UBYTE RGBByte::m_green
 

Definition at line 35 of file RGBByte.h.

Referenced by GammaCorrect(), GetLuminance(), RGBAByte::Green(), Green(), operator *=(), operator COLORREF(), operator+(), operator+=(), operator-=(), operator=(), RGBByte(), Set(), and SetGreen().

UBYTE RGBByte::m_red
 

Definition at line 35 of file RGBByte.h.

Referenced by GammaCorrect(), GetLuminance(), operator *=(), operator COLORREF(), operator+(), operator+=(), operator-=(), operator=(), RGBAByte::Red(), Red(), RGBByte(), Set(), and SetRed().


The documentation for this class was generated from the following file:
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:47:03 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001