ImageListGetBitmap (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

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

Personal tools
Assistance