I have listbox with pictures


I have listbox with pictures

var

Item:TlistBoxItem;
F:TBitmap;


for s in FolderList{Bilder} do
begin

Item:=TlistBoxItem.Create(nil);
Item.StyleLookup:='listboxitemnodetail';
Item.Width:=90;
Item.Height:=200;
Item.Margins.Rect:=rectF(0,5,5,0);
F:=TBitmap.Create;
f.LoadFromFile(s);
Item.ItemData.Bitmap:=(f); << I want to resize to full squer 90x200

Tried
// Item.ItemData.Bitmap.Resize(60,60);
//Canvas.DrawBitmap(f, Rect(0, 0, sib.Width, sib.Width), ib);//

f.Free;

Pictures are too small on android. do i resize after loading ? but then it will be to slaw.
any other list box component that i can inflate the picture to full item square ?

Comments

Post a Comment