Witam
mam pewnien problem z programowym dodawaniem obrazkow do imageedit. Nie znalazlem na stronie ani forum rozwiazania wiec tworze nowy temat. oto kod:
//ladowanie bitmapy
MyBMP:=TBitmap.Create;
MyBMP.LoadFromFile(otw);
MyBMP.Transparent:=true;
MyBMP.TransparentColor:=clfuchsia;
imageList.BkColor:=clfuchsia;
imageList.Masked := False;
imageList.Width:=MyBMP2.Width;
imageList.Height:=MyBMP2.Height;
h:=imageList.Add(MyBMP2,nil);
MyBMP.Free;
with listview.Items.Add do begin
caption:=dir2;
imageindex:=h;
end;
Problem w tym gdy dodaje obrazek do imagelist i ustawiam transparent to obrazek nadal ma tlo clfuchsia.
CZy ktos wie jak mozna sie tego pozbyc. gdy recznie dodaje obrazki do imagelist to nie ma tla.
Pytanie dodatkowe: czy mozliwe jest dodawac do imagelist a roznych rozmiarach czy tylko jednym ustalonym
mageList.Width:=MyBMP2.Width; imageList.Height:=MyBMP2.Height;
??
Pozdrawiam !