社区
Delphi
帖子详情
如何从ImageList中读取图片
happy1123
2004-11-27 11:49:32
我想从ImageList中读取图片,然后显示在Image中。请问如何实现。我没找到从ImageList中获取图片的方法。
...全文
383
3
打赏
收藏
如何从ImageList中读取图片
我想从ImageList中读取图片,然后显示在Image中。请问如何实现。我没找到从ImageList中获取图片的方法。
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
happy1123
2004-11-27
打赏
举报
回复
谢谢,呵呵,我刚开始也是这么做的,就是不行,后来Repaint一下就行了。不过还是谢谢你
postren
2004-11-27
打赏
举报
回复
例如:ImageList1.GetBitmap(0, Image1.Picture.Bitmap);
postren
2004-11-27
打赏
举报
回复
ImageList1.GetBitmap(...)
image
读取
image
list
里面图片
var i:integer=1; procedure TForm4.BitBtn1Click(Sender: TObject); begin Inc(i); if i>
Image
List
1.Count-1 then i:=0;
Image
List
1.GetBitmap(i,
image
1.Picture.Bitmap) ; Self.Ref...
c#读取数据库
中
图片路径,将图片保存到
image
list
,在
list
view显示
1,在winform界面,拖入
list
view,然后加入一个
image
list
。 2,我们要做的就是根据数据库
中
存储的图片路径,把图片存储到
image
list
,然后再
list
view
中
显示图片,和数据库
中
其他的一些内容。 代码如下: private void coldDish_Load(object sender, EventArgs e) { string sql = s
C#下读取Resource的png图片并放入
image
list
中
string address_temp = AppDomain.CurrentDomain.BaseDirectory ; string address = address_temp.Substring(0,address_temp.Length - 11); string[]
image
1 = Directory.GetFiles(address+@"\Reso...
c#—MemoryStream读图片存入
Image
List
FileStream fs = new FileStream("test.png", FileMode.Open, FileAccess.Read);//要读的图片 BinaryReader br = new BinaryReader(fs); byte[]
image
= br.ReadBytes((int)fs.Length);
C#
中
List
View和
Image
List
配合使用
http://www.programfan.com/club/post-218751-1.htmlusing System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.
Delphi
5,944
社区成员
262,941
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章