00001 00037 #ifndef _RGBTORGBCONVERTER_H 00038 #define _RGBTORGBCONVERTER_H 00039 00040 #pragma once 00041 00042 /* 00043 =========================================================================== 00044 Class definition. 00045 =========================================================================== 00046 */ 00047 class RGBtoRGBConverter 00048 { 00049 public: 00050 // Construction and destruction. 00051 RGBtoRGBConverter(void) {_width = 0; _height = 0; } 00052 RGBtoRGBConverter(int width, int height) {_width = width; _height = height;} 00053 virtual ~RGBtoRGBConverter(void) {} 00054 00055 // Interface. 00056 virtual void Convert(void* pRgbIn, void* pRgbOut) = 0; 00057 00058 // Member interface. 00059 int GetWidth(void) { return(_width); } 00060 int GetHeight(void) { return(_height); } 00061 00062 void SetDimensions(int width, int height) {_width = width; _height = height;} 00063 00064 protected: 00065 // Members. 00066 int _width; 00067 int _height; 00068 00069 };//end RGBtoRGBConverter. 00070 00071 #endif // _RGBTORGBCONVERTER_H