有关BitmapEx.h的问题 [英] a question about BitmapEx.h

查看:77
本文介绍了有关BitmapEx.h的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i write 复制了此代码,但出现错误.为什么不包含头文件?

编码:

i write copied this code but it gives an error. why it does not include the header file?

coding:

#include "BitmapEx.h"

// Load bitmap
CBitmapEx bitmapEx;
bitmapEx.Load(_T("Enter bitmap source file path here..."));

// Do whatever you need to do here

bitmapEx.Rotate(45);
bitmapEx.Sepia();
bitmapEx.Scale(50, 50);

// Draw the results on the screen (get hDC somewhere else)
bitmapEx.Draw(hDC);

// Save bitmap
bitmapEx.Save(_T("Enter bitmap destination file path here..."));



错误:
无法打开包含文件:"BitmapEx.h":没有这样的文件或目录



error:
Cannot open include file: ''BitmapEx.h'': No such file or directory

推荐答案

我看到CBitMapEx不是MFC,而是由CodeProject成员编写的一个附加文件在此文章中[
I see that CBitMapEx is not MFC but an extra written by a CodeProject member in this article[^]. I presume you have downloaded all the source and put the header file in some directory that Visual Studio is not aware of. Just add the directory to the list of include directories in your project configuration and everything should work fine. Alternatively you could post your question in the forum at the end of the article and the author may be able to help you.


这篇关于有关BitmapEx.h的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆