#include<atlimage.h>

int main(int argc,char* argv[])
{
CImage image;
image.Load(
"test.bmp");
image.Save(
"test.png",ImageFormatPNG);
}

You can use CImage from either MFC or ATL.

When you create a project using CImage, you must define CString before you include atlimage.h. If your project uses ATL without MFC, include atlstr.h before you include atlimage.h. If your project uses MFC (or if it is an ATL project with MFC support), include afxstr.h before you include atlimage.h.

Likewise, you must include atlimage.h before you include atlimpl.cpp. To accomplish this easily, include atlimage.h in your stdafx.h.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-05-01
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2021-12-09
  • 2022-12-23
  • 2021-12-09
  • 2022-03-08
  • 2022-01-27
相关资源
相似解决方案