//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "ImageListGetBitmap.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: ImageListGetBitmap
// Method: ImgList.TCustomImageList.GetBitmap
// Property: ExtCtrls.TImage.Stretch
// BeginCode
/*
This example assigns a bitmap contained in an ImageList to
an Image component's Picture's Bitmap property and displays
the bitmap.  TImage Stretch will fit the bitmap to the image
size.
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  ImageList1->GetBitmap(0, Image1->Picture->Bitmap);
  Image1->Stretch = True;
}
// EndCode
// EndExample: ImageListGetBitmap
//---------------------------------------------------------------------------
