www.pudn.com > backmode824.rar > Rgb.cpp


// Rgb.cpp: implementation of the CRgb class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "backmodel.h" 
#include "Rgb.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
CRgb::CRgb() 
{ 
	m_iR=0; 
	m_iG=0; 
	m_iB=0; 
} 
CRgb::CRgb(int r,int g,int b) 
{ 
	m_iR=r; 
	m_iG=g; 
	m_iB=b; 
} 
CRgb::~CRgb() 
{ 
 
} 
CRgb::setRgb(int r,int g,int b) 
{ 
	m_iR=r; 
	m_iG=g; 
	m_iB=b; 
}