ImageListGetBitmap (Delphi)
Description
This example assigns a bitmap contained in an ImageList to the Picture Bitmap property of an Image component and displays the bitmap. TImage Stretch adjusts the bitmap to the image size.
Code
procedure TForm1.Button1Click(Sender: TObject);
begin
ImageList1.GetBitmap(2,Image1.Picture.Bitmap);
Image1.Stretch := True;
end;
Uses
- Vcl.ImgList.TCustomImageList.GetBitmap ( fr | de | ja )
- Vcl.ExtCtrls.TImage.Stretch ( fr | de | ja )