Thanks,
Solution: just make an array of TBitMap
TAImgIcons = array[IT_NOICO..IT_BODEGA_ICO] of TBitmap; {where IT_NOICO..IT_BODEGA_ICO] are indexes of an own type}
populate
for tit := succ(IT_NOICO) to high(tICOType) do
begin
sFileName := exe_path + cas_DefaultIcoNames[tit]; //get filenames from another array
if fileexist(sFileName) then
begin
Image := tPicture.create;
Image.LoadFromFile(sFileName);
Icon := TBitmap.Create;
Icon.TransparentColor:=clWhite;
Icon.Transparent:=true;
Icon.Assign(Image.Graphic);
_AimgIcons[tit] := Icon;
end; ///if fileexists
end;// for
display
deviceCanvas.Draw(pt.x,pt.y, _AimgIcons[tit]); //where devicecancvas is the canvas where I want to draw the icons and pt. is a tPOINT which is calculated in advance
...
It works with png-files which have transparency