imapng.h

来自「一套图像处理程序,支持三种图像文件格式,我调试过了,很好用」· C头文件 代码 · 共 37 行

H
37
字号
/*
 * File:	ImaPNG.h
 * Purpose:	Declaration of the PNG Image Class
 * Author:	Alejandro Aguilar Sierra
 * Created:	1995
 * Copyright:	(c) 1995, Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
 *
 *
 */
#if !defined(__ImaPNG_h)
#define __ImaPNG_h

#include "imafile.h"

#if CIMAGE_SUPPORT_PNG
class CImagePNG: public CFileImageImpl
{
protected:
  CImageImpl *imabg;

public:
  CImagePNG(const CImagePNG * ima): CFileImageImpl(ima) { imabg=0; }
  CImagePNG(const CString& imageFileName ): CFileImageImpl(imageFileName) { imabg=0; }
  ~CImagePNG() {};

  BOOL ReadFile(const CString& imageFileName="");
  BOOL SaveFile(const CString& imageFileName="");

//  SetBackground(int r, int g, int b);
  void SetBackground(CImageImpl* bg) { imabg = bg; }
};

#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?