Imagelist动态加入图片,为什么每次都出现“Invalid image size”错误?
8341 2004-01-29 10:27:24 tmap:=Tbitmap.Create;
tmap.TransparentMode := tmAuto;
tmap.Transparent := True;
tmap.LoadFromFile('e:\bmp\1.bmp');
ImageList1.Add(tmap,nil);
执行到最后一句就说“Invalid image size”。这个imagelist的大小我设为20*60,这个BMP文件确实有点大,不过应该可以自动stretch或者只取其一部分呀?大家告诉我怎样不出现此错误?