ImageListGetBitmap (C++)

From RAD Studio Code Examples
Jump to: navigation, search

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

Personal tools
Assistance