imagelist怎么动态的从bmp文件中加载imags?

竹背篼 2003-05-26 01:30:45
imagelist怎么动态的从bmp文件中加载image?
...全文
96 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
yingyys 2003-05-26
  • 打赏
  • 举报
回复
up
hitbabiq 2003-05-26
  • 打赏
  • 举报
回复
Graphics::TBitmap* Image = new Graphics::TBitmap;

Image->LoadFromFile("d:\\host\\edit.bmp");
Form1->ImageList1->Add(Image,NULL);
僵哥 2003-05-26
  • 打赏
  • 举报
回复
首先将bmp文件加载到一个TBitmap对象里面,再用ImageList的Add方法:
int __fastcall Add(Graphics::TBitmap* Image, Graphics::TBitmap* Mask);
将第一参数传加载了bmp的TBitmap对象,第二参数传NULL就行了。

13,874

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧