Set transparent color of image

Posted in Graphics

Image component has a Transparent property. Set this property to True and your background color will be the same as color of your form.

procedure TForm1.FormCreate(Sender: TObject);
begin
  Image1.Transparent:=True;
  Image1.Picture.LoadFromFile('picture.bmp');
end;