pixel.h 490 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _pixel_h_
  2. #define _pixel_h_
  3. //////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Pixel
  6. //
  7. //////////////////////////////////////////////////////////////////////////////
  8. class Pixel {
  9. private:
  10. DWORD m_dw;
  11. Pixel(DWORD dw) :
  12. m_dw(dw)
  13. {
  14. }
  15. public:
  16. Pixel(const Pixel& pixel) :
  17. m_dw(pixel.m_dw)
  18. {
  19. }
  20. static Pixel Create(DWORD dw) { return Pixel(dw); }
  21. DWORD Value() const { return m_dw; }
  22. };
  23. #endif