IMAPNG.H
Upload User: wep9318
Upload Date: 2007-01-07
Package Size: 893k
Code Size: 1k
Category:

Picture Viewer

Development Platform:

Visual C++

  1. /*
  2.  * File: ImaPNG.h
  3.  * Purpose: Declaration of the PNG Image Class
  4.  * Author: Alejandro Aguilar Sierra
  5.  * Created: 1995
  6.  * Copyright: (c) 1995, Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
  7.  *
  8.  *
  9.  */
  10. #if !defined(__ImaPNG_h)
  11. #define __ImaPNG_h
  12. #include "imafile.h"
  13. #if CIMAGE_SUPPORT_PNG
  14. class CImagePNG: public CFileImageImpl
  15. {
  16. protected:
  17.   CImageImpl *imabg;
  18. public:
  19.   CImagePNG(const CImagePNG * ima): CFileImageImpl(ima) { imabg=0; }
  20.   CImagePNG(const CString& imageFileName ): CFileImageImpl(imageFileName) { imabg=0; }
  21.   ~CImagePNG() {};
  22.   BOOL ReadFile(const CString& imageFileName="");
  23.   BOOL SaveFile(const CString& imageFileName="");
  24. //  SetBackground(int r, int g, int b);
  25.   void SetBackground(CImageImpl* bg) { imabg = bg; }
  26. };
  27. #endif
  28. #endif