讨论:bmp转ico的问题 谁知道BMP或者其他图片怎么转为ICO??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure bmp2ico(Image: TImage; FileName: TFilename);var Bmp: TBitmap; Icon: TIcon; ImageList: TImageList;begin Bmp := TBitmap.Create; Icon := TIcon.Create; try Bmp.Assign(Image.Picture); ImageList := TImageList.CreateSize(Bmp.Width, Bmp.Height); try ImageList.AddMasked(Bmp, Bmp.TransparentColor); ImageList.GetIcon(0, Icon); // Save it to a file C Icon.SaveToFile(FileName); finally ImageList.Free; end; finally Bmp.Free; Icon.Free; end;end;http://www.0470a.net/cgi-bin/topic.cgi?forum=2&topic=286&show=0 这样的提示框如何做? 如何在短的时间里提高delphi 编程水平 有个小问题,烦请高手作答 StringGrid自动调整列宽????????? 有个简单问题 如何把UniCode转换为系统默认码GB232? 各位前輩,救救我吧! 请看原码,捉虫有分 我是sybase新手,以前使用oracle,我现在遇到一个问题,就是在sybase中怎样将字符型转化为数字型?我知道convert函数,却不知道具体的格式 tikkypeng(千两狂死郎)进来 dephi,有关问题请教 经典的国产软件.关于图形控件这方面的可以研究一下。
var Bmp: TBitmap;
Icon: TIcon;
ImageList: TImageList;
begin
Bmp := TBitmap.Create;
Icon := TIcon.Create;
try
Bmp.Assign(Image.Picture);
ImageList := TImageList.CreateSize(Bmp.Width, Bmp.Height);
try
ImageList.AddMasked(Bmp, Bmp.TransparentColor);
ImageList.GetIcon(0, Icon);
// Save it to a file C
Icon.SaveToFile(FileName);
finally
ImageList.Free;
end;
finally
Bmp.Free;
Icon.Free;
end;
end;http://www.0470a.net/cgi-bin/topic.cgi?forum=2&topic=286&show=0