ImageListGetBitmap (C++)
Description
This example assigns a bitmap contained in an ImageList to an Image component Picture's Bitmap property and displays the bitmap. TImage Stretch will adapt the bitmap to the image size.
Code
void __fastcall TForm1::Button1Click(TObject *Sender)
{
ImageList1->GetBitmap(0, Image1->Picture->Bitmap);
Image1->Stretch = True;
}
Uses
- Vcl.ImgList.TCustomImageList.GetBitmap ( fr | de | ja )
- Vcl.ExtCtrls.TImage.Stretch ( fr | de | ja )