YAByte Class Reference

#include <RGBByte.h>

List of all members.

Public Member Functions

 YAByte ()
 YAByte (const UBYTE luminance)
 YAByte (const UBYTE luminance, const UBYTE alpha)
 YAByte (const float luminance)
 YAByte (const float luminance, const float alpha)
 YAByte (UBYTE pred, UBYTE pgreen, UBYTE pblue)
 YAByte (UBYTE pred, UBYTE pgreen, UBYTE pblue, UBYTE palpha)
void * operator new (size_t size)
void operator delete (void *ptr)
YAByteoperator+= (const YAByte &)
YAByteoperator-= (const YAByte &)
YAByteoperator *= (const float)
YAByte operator+ (const YAByte &other)
 operator UBYTE ()
YAByteoperator= (const YAByte &other)
YAByteoperator/= (float scale)
float GetFactoredFloat () const
float GetNormalizedFloat () const
YAFloat GetFactoredRGBAFloat () const
YAFloat GetNormalizedRGBAFloat () const
UBYTE Luminance () const
UBYTE Alpha () const
void Set (UBYTE luminance, UBYTE alpha)
void SetLuminance (UBYTE luminance)
void SetLuminance (float luminance)
void SetAlpha (UBYTE alpha)
YAByte GammaCorrect (float power)
float GetFloat () const
YAFloat GetYAFloat () const
float GetOpacity () const
void SetOpacity (const float value)
float GetLuminance ()
BOOL CheckOffBound (float lobound, float hibound)

Public Attributes

UBYTE m_luminance
UBYTE m_alpha


Detailed Description

Definition at line 247 of file RGBByte.h.


Constructor & Destructor Documentation

YAByte::YAByte  )  [inline]
 

Definition at line 252 of file RGBByte.h.

References m_alpha, m_luminance, and MAXCOLOR.

Referenced by operator+().

YAByte::YAByte const UBYTE  luminance  )  [inline]
 

Definition at line 253 of file RGBByte.h.

References m_alpha, m_luminance, and MAXCOLOR.

YAByte::YAByte const UBYTE  luminance,
const UBYTE  alpha
[inline]
 

Definition at line 254 of file RGBByte.h.

References m_alpha, and m_luminance.

YAByte::YAByte const float  luminance  )  [inline]
 

Definition at line 255 of file RGBByte.h.

References m_alpha, m_luminance, and MAXCOLOR.

YAByte::YAByte const float  luminance,
const float  alpha
[inline]
 

Definition at line 256 of file RGBByte.h.

References m_alpha, and m_luminance.

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

Definition at line 258 of file RGBByte.h.

References m_alpha, m_luminance, and MAXCOLOR.

YAByte::YAByte UBYTE  pred,
UBYTE  pgreen,
UBYTE  pblue,
UBYTE  palpha
[inline]
 

Definition at line 259 of file RGBByte.h.

References m_alpha, and m_luminance.


Member Function Documentation

UBYTE YAByte::Alpha  )  const [inline]
 

Definition at line 282 of file RGBByte.h.

References m_alpha.

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

Definition at line 302 of file RGBByte.h.

References FALSE.

YAByte YAByte::GammaCorrect float  power  )  [inline]
 

Definition at line 287 of file RGBByte.h.

References fast_round(), m_alpha, m_luminance, MAXCOLOR, and MIN.

Here is the call graph for this function:

float YAByte::GetFactoredFloat  )  const [inline]
 

Definition at line 276 of file RGBByte.h.

References m_luminance.

YAFloat YAByte::GetFactoredRGBAFloat  )  const
 

float YAByte::GetFloat  )  const [inline]
 

Definition at line 296 of file RGBByte.h.

References m_luminance, and MAXCOLOR.

float YAByte::GetLuminance  )  [inline]
 

Definition at line 300 of file RGBByte.h.

References m_luminance, and MAXCOLOR.

float YAByte::GetNormalizedFloat  )  const [inline]
 

Definition at line 277 of file RGBByte.h.

References m_luminance, and MAXCOLOR.

YAFloat YAByte::GetNormalizedRGBAFloat  )  const
 

float YAByte::GetOpacity void   )  const [inline]
 

Definition at line 298 of file RGBByte.h.

References m_alpha, and MAXCOLOR.

YAFloat YAByte::GetYAFloat  )  const
 

UBYTE YAByte::Luminance  )  const [inline]
 

Definition at line 281 of file RGBByte.h.

References m_luminance.

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

Definition at line 333 of file RGBByte.h.

References m_alpha, and m_luminance.

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

Definition at line 266 of file RGBByte.h.

References FreeBitmap().

Here is the call graph for this function:

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

Definition at line 264 of file RGBByte.h.

References AllocBitmap().

Here is the call graph for this function:

YAByte::operator UBYTE  )  [inline]
 

Definition at line 272 of file RGBByte.h.

References m_luminance.

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

Definition at line 319 of file RGBByte.h.

References m_alpha, m_luminance, and YAByte().

Here is the call graph for this function:

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

Definition at line 305 of file RGBByte.h.

References m_alpha, m_luminance, and MAXCOLOR.

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

Definition at line 326 of file RGBByte.h.

References m_alpha, and m_luminance.

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

Definition at line 274 of file RGBByte.h.

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

Definition at line 273 of file RGBByte.h.

References m_alpha, and m_luminance.

void YAByte::Set UBYTE  luminance,
UBYTE  alpha
[inline]
 

Definition at line 283 of file RGBByte.h.

References m_alpha, and m_luminance.

void YAByte::SetAlpha UBYTE  alpha  )  [inline]
 

Definition at line 286 of file RGBByte.h.

References m_alpha.

void YAByte::SetLuminance float  luminance  )  [inline]
 

Definition at line 285 of file RGBByte.h.

References m_luminance, and MAXCOLOR.

void YAByte::SetLuminance UBYTE  luminance  )  [inline]
 

Definition at line 284 of file RGBByte.h.

References m_luminance.

void YAByte::SetOpacity const float  value  )  [inline]
 

Definition at line 299 of file RGBByte.h.

References FLOATTOBYTE, and m_alpha.


Member Data Documentation

UBYTE YAByte::m_alpha
 

Definition at line 250 of file RGBByte.h.

Referenced by Alpha(), GammaCorrect(), GetOpacity(), operator *=(), operator+(), operator+=(), operator-=(), operator=(), Set(), SetAlpha(), SetOpacity(), YAByte(), and YAFloat::YAFloat().

UBYTE YAByte::m_luminance
 

Definition at line 249 of file RGBByte.h.

Referenced by GammaCorrect(), GetFactoredFloat(), GetFloat(), GetLuminance(), GetNormalizedFloat(), Luminance(), operator *=(), operator UBYTE(), operator+(), operator+=(), operator-=(), operator=(), Set(), SetLuminance(), and YAByte().


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:07 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001