Graphics::TBitmap C++中问题

来源:百度知道 编辑:UC知道 时间:2024/05/07 09:16:15
Graphics::TBitmap *SrcBitmap=new Graphics::TBitmap;
TBitmap->Width=Image->Width;
TBitmap->Height=Image->Height;
TBitmap->Canvas->Brush->Style=bsClear;//
TBitmap->Canvas->TextOutA(10,10,"Draw Text");
TBitmap->Canvas->Pen->Color=RGB(0,0,255);
TBitmap->Canvas->MoveTo(0,0);
TBitmap->Canvas->LineTo(100,100);
Image->Picture->Bitmap=TBitmap;
delete TBitmap;

在头文件加入<Graphics.hpp> 后
fatal error C1083: Cannot open include file: 'Graphics.hpp': No such file or directory
难道还需要加入LIB 文件??那个文件在哪里
Graphics.h??人家说那个是TC的头文件 就是改了也不好用
我用的不是C++ builder或者TC 我想问的是如果要引用的话是不是要 加入什么LIB类库?

头文件是<Graphics.h>不是<Graphics.hpp>,试试看

提示的是你加的那个文件不存在,搜索一下
而且有时你把<>改为""也会有用,这个我就不知道原理了