Delphi Image使用ImageList中的图片

var
  bmp: Tbitmap;
begin
  bmp := Tbitmap.Create;
  try
    if Rlt then
    begin
      imagelist1.GetBitmap(1, bmp);
      img1.Picture.Assign(bmp);
    end
    else
    begin      
      imagelist1.GetBitmap(0, bmp);
img1.Picture.Assign(bmp); end; finally bmp.Free; end;



版权声明:本文为liang08114原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。