Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

TBitmapHelper

Adds a method to allow you to download images to bitmas via threading

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

TBitmapHelper

Adds a method to allow you to download images to bitmas via threading

Usage

delphi
procedure TForm1.btn1Click(Sender: TObject);
var
  I: Integer;
  LItem: TListViewItem;
begin
  lv1.BeginUpdate;
  try
    for I := 1 to 30 do
    begin
      LItem := lv1.Items.Add;
      LItem.Text := I.ToString;
      LItem.Bitmap.DownloadImage('https://ssl.comodo.com/images/https-ev-ssl.png');
    end;
  finally
    lv1.EndUpdate;
  end;
end;